pub struct AlignedTypeWidth(/* private fields */);
Expand description
An invariant-preserving newtype for representing the bitwidth of an alignable type.
Implementations§
Source§impl AlignedTypeWidth
impl AlignedTypeWidth
Sourcepub const MAX: u32 = 8_388_607u32
pub const MAX: u32 = 8_388_607u32
The maximum type width, in bits, representable in this structure.
Sourcepub const WIDTH1: AlignedTypeWidth
pub const WIDTH1: AlignedTypeWidth
A convenience handle for types of exactly $width bits.
Sourcepub const WIDTH8: AlignedTypeWidth
pub const WIDTH8: AlignedTypeWidth
A convenience handle for types of exactly $width bits.
Sourcepub const WIDTH16: AlignedTypeWidth
pub const WIDTH16: AlignedTypeWidth
A convenience handle for types of exactly $width bits.
Sourcepub const WIDTH32: AlignedTypeWidth
pub const WIDTH32: AlignedTypeWidth
A convenience handle for types of exactly $width bits.
Sourcepub const WIDTH64: AlignedTypeWidth
pub const WIDTH64: AlignedTypeWidth
A convenience handle for types of exactly $width bits.
Sourcepub const WIDTH128: AlignedTypeWidth
pub const WIDTH128: AlignedTypeWidth
A convenience handle for types of exactly $width bits.
Trait Implementations§
Source§impl Clone for AlignedTypeWidth
impl Clone for AlignedTypeWidth
Source§fn clone(&self) -> AlignedTypeWidth
fn clone(&self) -> AlignedTypeWidth
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 AlignedTypeWidth
impl Debug for AlignedTypeWidth
Source§impl Ord for AlignedTypeWidth
impl Ord for AlignedTypeWidth
Source§fn cmp(&self, other: &AlignedTypeWidth) -> Ordering
fn cmp(&self, other: &AlignedTypeWidth) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AlignedTypeWidth
impl PartialEq for AlignedTypeWidth
Source§impl PartialOrd for AlignedTypeWidth
impl PartialOrd for AlignedTypeWidth
Source§impl TryFrom<u32> for AlignedTypeWidth
impl TryFrom<u32> for AlignedTypeWidth
impl Copy for AlignedTypeWidth
impl Eq for AlignedTypeWidth
impl StructuralPartialEq for AlignedTypeWidth
Auto Trait Implementations§
impl Freeze for AlignedTypeWidth
impl RefUnwindSafe for AlignedTypeWidth
impl Send for AlignedTypeWidth
impl Sync for AlignedTypeWidth
impl Unpin for AlignedTypeWidth
impl UnwindSafe for AlignedTypeWidth
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