pub struct IntLit {
pub value: u128,
pub base: NumBase,
pub unsigned: bool,
pub long: LongKind,
pub text: String,
}Expand description
A decoded integer constant.
Fields§
§value: u128The value, before any type is chosen for it.
base: NumBaseHow it was written.
unsigned: boolWhether a u/U suffix was present.
long: LongKindWhether an l/ll suffix was present.
text: StringThe exact source spelling.
Trait Implementations§
impl Eq for IntLit
impl StructuralPartialEq for IntLit
Auto Trait Implementations§
impl Freeze for IntLit
impl RefUnwindSafe for IntLit
impl Send for IntLit
impl Sync for IntLit
impl Unpin for IntLit
impl UnsafeUnpin for IntLit
impl UnwindSafe for IntLit
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