pub struct CompatibleFeatures { /* private fields */ }Expand description
Bitmask of compatible features. An implementation can safely ignore any unknown bits that are set.
Implementations§
Source§impl CompatibleFeatures
impl CompatibleFeatures
Sourcepub const fn into_bytes(self) -> [u8; 8]
pub const fn into_bytes(self) -> [u8; 8]
Sourcepub const fn from_bytes(bytes: [u8; 8]) -> Self
pub const fn from_bytes(bytes: [u8; 8]) -> Self
Converts the given bytes directly into the bitfield struct.
Source§impl CompatibleFeatures
impl CompatibleFeatures
Sourcepub fn lazy_refcount(&self) -> <bool as Specifier>::InOut
pub fn lazy_refcount(&self) -> <bool as Specifier>::InOut
Returns the value of lazy_refcount. Lazy refcounts bit. If this bit is set then lazy refcount updates can be used. This means marking the image file dirty and postponing refcount metadata updates.
Sourcepub fn lazy_refcount_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn lazy_refcount_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of lazy_refcount.
#Errors
If the returned value contains an invalid bit pattern for lazy_refcount. Lazy refcounts bit. If this bit is set then lazy refcount updates can be used. This means marking the image file dirty and postponing refcount metadata updates.
Sourcepub fn with_lazy_refcount(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_lazy_refcount(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of lazy_refcount set to the given value.
#Panics
If the given value is out of bounds for lazy_refcount. Lazy refcounts bit. If this bit is set then lazy refcount updates can be used. This means marking the image file dirty and postponing refcount metadata updates.
Sourcepub fn with_lazy_refcount_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_lazy_refcount_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of lazy_refcount set to the given value.
#Errors
If the given value is out of bounds for lazy_refcount. Lazy refcounts bit. If this bit is set then lazy refcount updates can be used. This means marking the image file dirty and postponing refcount metadata updates.
Sourcepub fn set_lazy_refcount(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_lazy_refcount(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of lazy_refcount to the given value.
#Panics
If the given value is out of bounds for lazy_refcount. Lazy refcounts bit. If this bit is set then lazy refcount updates can be used. This means marking the image file dirty and postponing refcount metadata updates.
Sourcepub fn set_lazy_refcount_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_lazy_refcount_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of lazy_refcount to the given value.
#Errors
If the given value is out of bounds for lazy_refcount. Lazy refcounts bit. If this bit is set then lazy refcount updates can be used. This means marking the image file dirty and postponing refcount metadata updates.