pub struct LbaFormat { /* private fields */ }
Implementations§
source§impl LbaFormat
impl LbaFormat
sourcepub const fn into_bytes(self) -> [u8; 4]
pub const fn into_bytes(self) -> [u8; 4]
sourcepub const fn from_bytes(bytes: [u8; 4]) -> Self
pub const fn from_bytes(bytes: [u8; 4]) -> Self
Converts the given bytes directly into the bitfield struct.
source§impl LbaFormat
impl LbaFormat
sourcepub fn metadata_size(&self) -> <u16 as Specifier>::InOut
pub fn metadata_size(&self) -> <u16 as Specifier>::InOut
Returns the value of metadata_size.
sourcepub fn metadata_size_or_err(
&self
) -> Result<<u16 as Specifier>::InOut, InvalidBitPattern<<u16 as Specifier>::Bytes>>
pub fn metadata_size_or_err( &self ) -> Result<<u16 as Specifier>::InOut, InvalidBitPattern<<u16 as Specifier>::Bytes>>
Returns the value of metadata_size.
#Errors
If the returned value contains an invalid bit pattern for metadata_size.
sourcepub fn data_size_log2(&self) -> <u8 as Specifier>::InOut
pub fn data_size_log2(&self) -> <u8 as Specifier>::InOut
Returns the value of data_size_log2.
sourcepub fn data_size_log2_or_err(
&self
) -> Result<<u8 as Specifier>::InOut, InvalidBitPattern<<u8 as Specifier>::Bytes>>
pub fn data_size_log2_or_err( &self ) -> Result<<u8 as Specifier>::InOut, InvalidBitPattern<<u8 as Specifier>::Bytes>>
Returns the value of data_size_log2.
#Errors
If the returned value contains an invalid bit pattern for data_size_log2.
sourcepub fn relative_performance(&self) -> <RelativePerformance as Specifier>::InOut
pub fn relative_performance(&self) -> <RelativePerformance as Specifier>::InOut
Returns the value of relative_performance.
sourcepub fn relative_performance_or_err(
&self
) -> Result<<RelativePerformance as Specifier>::InOut, InvalidBitPattern<<RelativePerformance as Specifier>::Bytes>>
pub fn relative_performance_or_err( &self ) -> Result<<RelativePerformance as Specifier>::InOut, InvalidBitPattern<<RelativePerformance as Specifier>::Bytes>>
Returns the value of relative_performance.
#Errors
If the returned value contains an invalid bit pattern for relative_performance.
Trait Implementations§
impl Copy for LbaFormat
Auto Trait Implementations§
impl RefUnwindSafe for LbaFormat
impl Send for LbaFormat
impl Sync for LbaFormat
impl Unpin for LbaFormat
impl UnwindSafe for LbaFormat
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