pub struct FormattedLbaSize { /* private fields */ }
Implementations§
source§impl FormattedLbaSize
impl FormattedLbaSize
sourcepub const fn into_bytes(self) -> [u8; 1]
pub const fn into_bytes(self) -> [u8; 1]
sourcepub const fn from_bytes(bytes: [u8; 1]) -> Self
pub const fn from_bytes(bytes: [u8; 1]) -> Self
Converts the given bytes directly into the bitfield struct.
source§impl FormattedLbaSize
impl FormattedLbaSize
sourcepub fn extended_block(&self) -> <B1 as Specifier>::InOut
pub fn extended_block(&self) -> <B1 as Specifier>::InOut
Returns the value of extended_block.
sourcepub fn extended_block_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn extended_block_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of extended_block.
#Errors
If the returned value contains an invalid bit pattern for extended_block.
Trait Implementations§
source§impl Clone for FormattedLbaSize
impl Clone for FormattedLbaSize
source§fn clone(&self) -> FormattedLbaSize
fn clone(&self) -> FormattedLbaSize
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 FormattedLbaSize
impl Debug for FormattedLbaSize
source§impl Default for FormattedLbaSize
impl Default for FormattedLbaSize
source§fn default() -> FormattedLbaSize
fn default() -> FormattedLbaSize
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FormattedLbaSize
impl RefUnwindSafe for FormattedLbaSize
impl Send for FormattedLbaSize
impl Sync for FormattedLbaSize
impl Unpin for FormattedLbaSize
impl UnwindSafe for FormattedLbaSize
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
)