pub struct ReadDword13 { /* private fields */ }
Implementations§
source§impl ReadDword13
impl ReadDword13
source§impl ReadDword13
impl ReadDword13
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 ReadDword13
impl ReadDword13
sourcepub fn access_frequency(&self) -> <AccessFrequency as Specifier>::InOut
pub fn access_frequency(&self) -> <AccessFrequency as Specifier>::InOut
Returns the value of access_frequency.
sourcepub fn access_frequency_or_err(
&self,
) -> Result<<AccessFrequency as Specifier>::InOut, InvalidBitPattern<<AccessFrequency as Specifier>::Bytes>>
pub fn access_frequency_or_err( &self, ) -> Result<<AccessFrequency as Specifier>::InOut, InvalidBitPattern<<AccessFrequency as Specifier>::Bytes>>
Returns the value of access_frequency.
#Errors
If the returned value contains an invalid bit pattern for access_frequency.
sourcepub fn with_access_frequency(
self,
new_val: <AccessFrequency as Specifier>::InOut,
) -> Self
pub fn with_access_frequency( self, new_val: <AccessFrequency as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of access_frequency set to the given value.
#Panics
If the given value is out of bounds for access_frequency.
sourcepub fn with_access_frequency_checked(
self,
new_val: <AccessFrequency as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_access_frequency_checked( self, new_val: <AccessFrequency as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of access_frequency set to the given value.
#Errors
If the given value is out of bounds for access_frequency.
sourcepub fn set_access_frequency(
&mut self,
new_val: <AccessFrequency as Specifier>::InOut,
)
pub fn set_access_frequency( &mut self, new_val: <AccessFrequency as Specifier>::InOut, )
Sets the value of access_frequency to the given value.
#Panics
If the given value is out of bounds for access_frequency.
sourcepub fn set_access_frequency_checked(
&mut self,
new_val: <AccessFrequency as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_access_frequency_checked( &mut self, new_val: <AccessFrequency as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of access_frequency to the given value.
#Errors
If the given value is out of bounds for access_frequency.
sourcepub fn access_latency(&self) -> <AccessLatency as Specifier>::InOut
pub fn access_latency(&self) -> <AccessLatency as Specifier>::InOut
Returns the value of access_latency.
sourcepub fn access_latency_or_err(
&self,
) -> Result<<AccessLatency as Specifier>::InOut, InvalidBitPattern<<AccessLatency as Specifier>::Bytes>>
pub fn access_latency_or_err( &self, ) -> Result<<AccessLatency as Specifier>::InOut, InvalidBitPattern<<AccessLatency as Specifier>::Bytes>>
Returns the value of access_latency.
#Errors
If the returned value contains an invalid bit pattern for access_latency.
sourcepub fn with_access_latency(
self,
new_val: <AccessLatency as Specifier>::InOut,
) -> Self
pub fn with_access_latency( self, new_val: <AccessLatency as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of access_latency set to the given value.
#Panics
If the given value is out of bounds for access_latency.
sourcepub fn with_access_latency_checked(
self,
new_val: <AccessLatency as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_access_latency_checked( self, new_val: <AccessLatency as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of access_latency set to the given value.
#Errors
If the given value is out of bounds for access_latency.
sourcepub fn set_access_latency(
&mut self,
new_val: <AccessLatency as Specifier>::InOut,
)
pub fn set_access_latency( &mut self, new_val: <AccessLatency as Specifier>::InOut, )
Sets the value of access_latency to the given value.
#Panics
If the given value is out of bounds for access_latency.
sourcepub fn set_access_latency_checked(
&mut self,
new_val: <AccessLatency as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_access_latency_checked( &mut self, new_val: <AccessLatency as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of access_latency to the given value.
#Errors
If the given value is out of bounds for access_latency.
sourcepub fn sequenial_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn sequenial_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of sequenial.
#Errors
If the returned value contains an invalid bit pattern for sequenial.
sourcepub fn with_sequenial(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_sequenial(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of sequenial set to the given value.
#Panics
If the given value is out of bounds for sequenial.
sourcepub fn with_sequenial_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_sequenial_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of sequenial set to the given value.
#Errors
If the given value is out of bounds for sequenial.
sourcepub fn set_sequenial(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_sequenial(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of sequenial to the given value.
#Panics
If the given value is out of bounds for sequenial.
sourcepub fn set_sequenial_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_sequenial_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of sequenial to the given value.
#Errors
If the given value is out of bounds for sequenial.
sourcepub fn incompressable(&self) -> <bool as Specifier>::InOut
pub fn incompressable(&self) -> <bool as Specifier>::InOut
Returns the value of incompressable.
sourcepub fn incompressable_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn incompressable_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of incompressable.
#Errors
If the returned value contains an invalid bit pattern for incompressable.
sourcepub fn with_incompressable(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_incompressable(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of incompressable set to the given value.
#Panics
If the given value is out of bounds for incompressable.
sourcepub fn with_incompressable_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_incompressable_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of incompressable set to the given value.
#Errors
If the given value is out of bounds for incompressable.
sourcepub fn set_incompressable(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_incompressable(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of incompressable to the given value.
#Panics
If the given value is out of bounds for incompressable.
sourcepub fn set_incompressable_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_incompressable_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of incompressable to the given value.
#Errors
If the given value is out of bounds for incompressable.
Trait Implementations§
source§impl Clone for ReadDword13
impl Clone for ReadDword13
source§fn clone(&self) -> ReadDword13
fn clone(&self) -> ReadDword13
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReadDword13
impl Debug for ReadDword13
source§impl Default for ReadDword13
impl Default for ReadDword13
source§fn default() -> ReadDword13
fn default() -> ReadDword13
source§impl From<ReadDword13> for u32
impl From<ReadDword13> for u32
source§fn from(__bf_bitfield: ReadDword13) -> Self
fn from(__bf_bitfield: ReadDword13) -> Self
source§impl From<u32> for ReadDword13
impl From<u32> for ReadDword13
impl Copy for ReadDword13
Auto Trait Implementations§
impl Freeze for ReadDword13
impl RefUnwindSafe for ReadDword13
impl Send for ReadDword13
impl Sync for ReadDword13
impl Unpin for ReadDword13
impl UnwindSafe for ReadDword13
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
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)
clone_to_uninit
)