pub enum IntConstantType {
Standard(IntKind),
BitInt {
signed: bool,
width: u32,
},
}Expand description
The type of an integer constant.
Variants§
Standard(IntKind)
One of the integer kinds, chosen by the table walk.
BitInt
A _BitInt of exactly the width it takes to hold the value.
Implementations§
Source§impl IntConstantType
impl IntConstantType
Sourcepub const fn suffix(self) -> &'static str
pub const fn suffix(self) -> &'static str
A suffix that names this type, for a printer putting the constant back.
The value decides the rest. Nothing spells __int128, because no suffix does and none is
needed: a constant only gets that type by being too large for every other one, so writing
the value back gets the same answer out of the table walk.
Trait Implementations§
Source§impl Clone for IntConstantType
impl Clone for IntConstantType
Source§fn clone(&self) -> IntConstantType
fn clone(&self) -> IntConstantType
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 IntConstantType
Source§impl Debug for IntConstantType
impl Debug for IntConstantType
impl Eq for IntConstantType
Source§impl PartialEq for IntConstantType
impl PartialEq for IntConstantType
impl StructuralPartialEq for IntConstantType
Auto Trait Implementations§
impl Freeze for IntConstantType
impl RefUnwindSafe for IntConstantType
impl Send for IntConstantType
impl Sync for IntConstantType
impl Unpin for IntConstantType
impl UnsafeUnpin for IntConstantType
impl UnwindSafe for IntConstantType
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