#[non_exhaustive]pub struct IntegerType { /* private fields */ }
Expand description
Represents a fixed-width integral type.
The validity of the internal width is correct by construction.
Implementations§
Source§impl IntegerType
impl IntegerType
Sourcepub const MIN_INT_BITS: u32 = 1u32
pub const MIN_INT_BITS: u32 = 1u32
The minimum number of bits in a valid integer type.
Sourcepub const MAX_INT_BITS: u32 = 16_777_215u32
pub const MAX_INT_BITS: u32 = 16_777_215u32
The maximum number of bits in a valid integer type.
Sourcepub fn byte_width(&self) -> u32
pub fn byte_width(&self) -> u32
Returns the width of this integral type in bytes.
The byte width of this type may be larger than the number of bits needed.
Trait Implementations§
Source§impl Clone for IntegerType
impl Clone for IntegerType
Source§fn clone(&self) -> IntegerType
fn clone(&self) -> IntegerType
Returns a duplicate 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 Debug for IntegerType
impl Debug for IntegerType
Source§impl PartialEq for IntegerType
impl PartialEq for IntegerType
Source§impl TryFrom<u32> for IntegerType
impl TryFrom<u32> for IntegerType
impl StructuralPartialEq for IntegerType
Auto Trait Implementations§
impl Freeze for IntegerType
impl RefUnwindSafe for IntegerType
impl Send for IntegerType
impl Sync for IntegerType
impl Unpin for IntegerType
impl UnwindSafe for IntegerType
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