pub struct IntConstant {
pub value: u128,
pub ty: IntConstantType,
pub imaginary: bool,
pub remarks: Remarks,
}Expand description
A converted integer constant.
Fields§
§value: u128The value, which is never negative: a minus sign is an operator and not part of the
constant, which is why -2147483648 is a long on a 32-bit int and the reason
INT_MIN is spelled the way it is in limits.h.
ty: IntConstantTypeThe type the table walk arrived at, which is the type of a half where the constant is imaginary and the type of the whole thing where it is not.
imaginary: boolWhether an i or a j made this the imaginary part of a complex constant. The value is
the whole number that was written either way, so the caller builds the complex one.
remarks: RemarksWhat is worth saying about the constant, for the caller that holds the span.
Trait Implementations§
Source§impl Clone for IntConstant
impl Clone for IntConstant
impl Copy for IntConstant
Source§impl Debug for IntConstant
impl Debug for IntConstant
impl Eq for IntConstant
Source§impl PartialEq for IntConstant
impl PartialEq for IntConstant
impl StructuralPartialEq for IntConstant
Auto Trait Implementations§
impl Freeze for IntConstant
impl RefUnwindSafe for IntConstant
impl Send for IntConstant
impl Sync for IntConstant
impl Unpin for IntConstant
impl UnsafeUnpin for IntConstant
impl UnwindSafe for IntConstant
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