pub struct LogicalBlockProvisioningPageHeader { /* private fields */ }Implementations§
Source§impl LogicalBlockProvisioningPageHeader
impl LogicalBlockProvisioningPageHeader
Sourcepub const fn into_bytes(self) -> [u8; 16]
pub const fn into_bytes(self) -> [u8; 16]
Sourcepub const fn from_bytes(bytes: [u8; 16]) -> Self
pub const fn from_bytes(bytes: [u8; 16]) -> Self
Converts the given bytes directly into the bitfield struct.
Source§impl LogicalBlockProvisioningPageHeader
impl LogicalBlockProvisioningPageHeader
Sourcepub fn parameters_saveable(&self) -> <B1 as Specifier>::InOut
pub fn parameters_saveable(&self) -> <B1 as Specifier>::InOut
Returns the value of parameters_saveable.
Sourcepub fn parameters_saveable_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn parameters_saveable_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of parameters_saveable.
#Errors
If the returned value contains an invalid bit pattern for parameters_saveable.
Sourcepub fn with_parameters_saveable(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_parameters_saveable(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of parameters_saveable set to the given value.
#Panics
If the given value is out of bounds for parameters_saveable.
Sourcepub fn with_parameters_saveable_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_parameters_saveable_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of parameters_saveable set to the given value.
#Errors
If the given value is out of bounds for parameters_saveable.
Sourcepub fn set_parameters_saveable(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_parameters_saveable(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of parameters_saveable to the given value.
#Panics
If the given value is out of bounds for parameters_saveable.
Sourcepub fn set_parameters_saveable_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_parameters_saveable_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of parameters_saveable to the given value.
#Errors
If the given value is out of bounds for parameters_saveable.
Sourcepub fn subpage_format(&self) -> <B1 as Specifier>::InOut
pub fn subpage_format(&self) -> <B1 as Specifier>::InOut
Returns the value of subpage_format.
Sourcepub fn subpage_format_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn subpage_format_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of subpage_format.
#Errors
If the returned value contains an invalid bit pattern for subpage_format.
Sourcepub fn with_subpage_format(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_subpage_format(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of subpage_format set to the given value.
#Panics
If the given value is out of bounds for subpage_format.
Sourcepub fn with_subpage_format_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_subpage_format_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of subpage_format set to the given value.
#Errors
If the given value is out of bounds for subpage_format.
Sourcepub fn set_subpage_format(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_subpage_format(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of subpage_format to the given value.
#Panics
If the given value is out of bounds for subpage_format.
Sourcepub fn set_subpage_format_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_subpage_format_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of subpage_format to the given value.
#Errors
If the given value is out of bounds for subpage_format.
Sourcepub fn page_code_or_err(
&self,
) -> Result<<B6 as Specifier>::InOut, InvalidBitPattern<<B6 as Specifier>::Bytes>>
pub fn page_code_or_err( &self, ) -> Result<<B6 as Specifier>::InOut, InvalidBitPattern<<B6 as Specifier>::Bytes>>
Returns the value of page_code.
#Errors
If the returned value contains an invalid bit pattern for page_code.
Sourcepub fn with_page_code(self, new_val: <B6 as Specifier>::InOut) -> Self
pub fn with_page_code(self, new_val: <B6 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of page_code set to the given value.
#Panics
If the given value is out of bounds for page_code.
Sourcepub fn with_page_code_checked(
self,
new_val: <B6 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_page_code_checked( self, new_val: <B6 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of page_code set to the given value.
#Errors
If the given value is out of bounds for page_code.
Sourcepub fn set_page_code(&mut self, new_val: <B6 as Specifier>::InOut)
pub fn set_page_code(&mut self, new_val: <B6 as Specifier>::InOut)
Sets the value of page_code to the given value.
#Panics
If the given value is out of bounds for page_code.
Sourcepub fn set_page_code_checked(
&mut self,
new_val: <B6 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_page_code_checked( &mut self, new_val: <B6 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of page_code to the given value.
#Errors
If the given value is out of bounds for page_code.
Sourcepub fn subpage_code(&self) -> <B8 as Specifier>::InOut
pub fn subpage_code(&self) -> <B8 as Specifier>::InOut
Returns the value of subpage_code.
Sourcepub fn subpage_code_or_err(
&self,
) -> Result<<B8 as Specifier>::InOut, InvalidBitPattern<<B8 as Specifier>::Bytes>>
pub fn subpage_code_or_err( &self, ) -> Result<<B8 as Specifier>::InOut, InvalidBitPattern<<B8 as Specifier>::Bytes>>
Returns the value of subpage_code.
#Errors
If the returned value contains an invalid bit pattern for subpage_code.
Sourcepub fn with_subpage_code(self, new_val: <B8 as Specifier>::InOut) -> Self
pub fn with_subpage_code(self, new_val: <B8 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of subpage_code set to the given value.
#Panics
If the given value is out of bounds for subpage_code.
Sourcepub fn with_subpage_code_checked(
self,
new_val: <B8 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_subpage_code_checked( self, new_val: <B8 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of subpage_code set to the given value.
#Errors
If the given value is out of bounds for subpage_code.
Sourcepub fn set_subpage_code(&mut self, new_val: <B8 as Specifier>::InOut)
pub fn set_subpage_code(&mut self, new_val: <B8 as Specifier>::InOut)
Sets the value of subpage_code to the given value.
#Panics
If the given value is out of bounds for subpage_code.
Sourcepub fn set_subpage_code_checked(
&mut self,
new_val: <B8 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_subpage_code_checked( &mut self, new_val: <B8 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of subpage_code to the given value.
#Errors
If the given value is out of bounds for subpage_code.
Sourcepub fn page_length(&self) -> <B16 as Specifier>::InOut
pub fn page_length(&self) -> <B16 as Specifier>::InOut
Returns the value of page_length.
Sourcepub fn page_length_or_err(
&self,
) -> Result<<B16 as Specifier>::InOut, InvalidBitPattern<<B16 as Specifier>::Bytes>>
pub fn page_length_or_err( &self, ) -> Result<<B16 as Specifier>::InOut, InvalidBitPattern<<B16 as Specifier>::Bytes>>
Returns the value of page_length.
#Errors
If the returned value contains an invalid bit pattern for page_length.
Sourcepub fn with_page_length(self, new_val: <B16 as Specifier>::InOut) -> Self
pub fn with_page_length(self, new_val: <B16 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of page_length set to the given value.
#Panics
If the given value is out of bounds for page_length.
Sourcepub fn with_page_length_checked(
self,
new_val: <B16 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_page_length_checked( self, new_val: <B16 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of page_length set to the given value.
#Errors
If the given value is out of bounds for page_length.
Sourcepub fn set_page_length(&mut self, new_val: <B16 as Specifier>::InOut)
pub fn set_page_length(&mut self, new_val: <B16 as Specifier>::InOut)
Sets the value of page_length to the given value.
#Panics
If the given value is out of bounds for page_length.
Sourcepub fn set_page_length_checked(
&mut self,
new_val: <B16 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_page_length_checked( &mut self, new_val: <B16 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of page_length to the given value.
#Errors
If the given value is out of bounds for page_length.
Sourcepub fn situa_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn situa_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of situa.
#Errors
If the returned value contains an invalid bit pattern for situa.
Sourcepub fn with_situa(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_situa(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of situa set to the given value.
#Panics
If the given value is out of bounds for situa.
Sourcepub fn with_situa_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_situa_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of situa set to the given value.
#Errors
If the given value is out of bounds for situa.
Sourcepub fn set_situa(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_situa(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of situa to the given value.
#Panics
If the given value is out of bounds for situa.
Sourcepub fn set_situa_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_situa_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of situa to the given value.
#Errors
If the given value is out of bounds for situa.
Trait Implementations§
Source§impl CheckTotalSizeMultipleOf8 for LogicalBlockProvisioningPageHeader
impl CheckTotalSizeMultipleOf8 for LogicalBlockProvisioningPageHeader
Source§impl Clone for LogicalBlockProvisioningPageHeader
impl Clone for LogicalBlockProvisioningPageHeader
Source§fn clone(&self) -> LogicalBlockProvisioningPageHeader
fn clone(&self) -> LogicalBlockProvisioningPageHeader
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more