pub enum IntegerLit<'a> {
Dec(DecLit<'a>),
Hex(HexLit<'a>),
Oct(OctLit<'a>),
}
Expand description
Represents an integer value
Variants§
Trait Implementations§
Source§impl<'a> Clone for IntegerLit<'a>
impl<'a> Clone for IntegerLit<'a>
Source§fn clone(&self) -> IntegerLit<'a>
fn clone(&self) -> IntegerLit<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for IntegerLit<'a>
impl<'a> Debug for IntegerLit<'a>
Source§impl<'a> From<DecLit<'a>> for IntegerLit<'a>
impl<'a> From<DecLit<'a>> for IntegerLit<'a>
Source§impl<'a> From<HexLit<'a>> for IntegerLit<'a>
impl<'a> From<HexLit<'a>> for IntegerLit<'a>
Source§impl<'a> From<IntegerLit<'a>> for ConstValue<'a>
impl<'a> From<IntegerLit<'a>> for ConstValue<'a>
Source§fn from(x: IntegerLit<'a>) -> Self
fn from(x: IntegerLit<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<IntegerLit<'a>> for DefaultValue<'a>
impl<'a> From<IntegerLit<'a>> for DefaultValue<'a>
Source§fn from(x: IntegerLit<'a>) -> Self
fn from(x: IntegerLit<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<OctLit<'a>> for IntegerLit<'a>
impl<'a> From<OctLit<'a>> for IntegerLit<'a>
Source§impl<'a> Hash for IntegerLit<'a>
impl<'a> Hash for IntegerLit<'a>
Source§impl<'a> Ord for IntegerLit<'a>
impl<'a> Ord for IntegerLit<'a>
Source§fn cmp(&self, other: &IntegerLit<'a>) -> Ordering
fn cmp(&self, other: &IntegerLit<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for IntegerLit<'a>
impl<'a> Parse<'a> for IntegerLit<'a>
Source§impl<'a> PartialEq for IntegerLit<'a>
impl<'a> PartialEq for IntegerLit<'a>
Source§impl<'a> PartialOrd for IntegerLit<'a>
impl<'a> PartialOrd for IntegerLit<'a>
impl<'a> Copy for IntegerLit<'a>
impl<'a> Eq for IntegerLit<'a>
impl<'a> StructuralPartialEq for IntegerLit<'a>
Auto Trait Implementations§
impl<'a> Freeze for IntegerLit<'a>
impl<'a> RefUnwindSafe for IntegerLit<'a>
impl<'a> Send for IntegerLit<'a>
impl<'a> Sync for IntegerLit<'a>
impl<'a> Unpin for IntegerLit<'a>
impl<'a> UnwindSafe for IntegerLit<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more