Struct digit_layout::DigitLayout
source · pub struct DigitLayout(/* private fields */);Expand description
A layout of a digit data type in memory.
Implementations§
source§impl DigitLayout
impl DigitLayout
sourcepub const fn unsigned(width: u32) -> Self
pub const fn unsigned(width: u32) -> Self
Create a new digit layout for an unsigned integer type.
sourcepub const fn real(exponent: u32, mantissa: u32) -> Self
pub const fn real(exponent: u32, mantissa: u32) -> Self
Create a new digit layout for a real number type.
sourcepub const fn decode(self) -> LayoutContent
pub const fn decode(self) -> LayoutContent
Decode the content of the digit layout.
Trait Implementations§
source§impl Clone for DigitLayout
impl Clone for DigitLayout
source§fn clone(&self) -> DigitLayout
fn clone(&self) -> DigitLayout
Returns a copy 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 DigitLayout
impl Debug for DigitLayout
source§impl Display for DigitLayout
impl Display for DigitLayout
source§impl PartialEq for DigitLayout
impl PartialEq for DigitLayout
impl Copy for DigitLayout
impl Eq for DigitLayout
impl StructuralPartialEq for DigitLayout
Auto Trait Implementations§
impl Freeze for DigitLayout
impl RefUnwindSafe for DigitLayout
impl Send for DigitLayout
impl Sync for DigitLayout
impl Unpin for DigitLayout
impl UnwindSafe for DigitLayout
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)