pub struct IntConstant {
pub value: u128,
pub ty: IntConstantType,
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.
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
Source§fn clone(&self) -> IntConstant
fn clone(&self) -> IntConstant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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