pub struct StreamEntryFlags { /* private fields */ }
Implementations§
Source§impl StreamEntryFlags
impl StreamEntryFlags
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 StreamEntryFlags
impl StreamEntryFlags
Sourcepub fn is_regional(&self) -> <bool as Specifier>::InOut
pub fn is_regional(&self) -> <bool as Specifier>::InOut
Returns the value of is_regional.
Sourcepub fn is_regional_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn is_regional_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of is_regional.
#Errors
If the returned value contains an invalid bit pattern for is_regional.
Sourcepub fn with_is_regional(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_is_regional(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of is_regional set to the given value.
#Panics
If the given value is out of bounds for is_regional.
Sourcepub fn with_is_regional_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_is_regional_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of is_regional set to the given value.
#Errors
If the given value is out of bounds for is_regional.
Sourcepub fn set_is_regional(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_is_regional(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of is_regional to the given value.
#Panics
If the given value is out of bounds for is_regional.
Sourcepub fn set_is_regional_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_is_regional_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of is_regional to the given value.
#Errors
If the given value is out of bounds for is_regional.
Sourcepub fn is_localized(&self) -> <bool as Specifier>::InOut
pub fn is_localized(&self) -> <bool as Specifier>::InOut
Returns the value of is_localized.
Sourcepub fn is_localized_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn is_localized_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of is_localized.
#Errors
If the returned value contains an invalid bit pattern for is_localized.
Sourcepub fn with_is_localized(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_is_localized(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of is_localized set to the given value.
#Panics
If the given value is out of bounds for is_localized.
Sourcepub fn with_is_localized_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_is_localized_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of is_localized set to the given value.
#Errors
If the given value is out of bounds for is_localized.
Sourcepub fn set_is_localized(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_is_localized(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of is_localized to the given value.
#Panics
If the given value is out of bounds for is_localized.
Sourcepub fn set_is_localized_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_is_localized_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of is_localized to the given value.
#Errors
If the given value is out of bounds for is_localized.
Sourcepub fn unused_or_err(
&self,
) -> Result<<B30 as Specifier>::InOut, InvalidBitPattern<<B30 as Specifier>::Bytes>>
pub fn unused_or_err( &self, ) -> Result<<B30 as Specifier>::InOut, InvalidBitPattern<<B30 as Specifier>::Bytes>>
Returns the value of unused.
#Errors
If the returned value contains an invalid bit pattern for unused.
Sourcepub fn with_unused(self, new_val: <B30 as Specifier>::InOut) -> Self
pub fn with_unused(self, new_val: <B30 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of unused set to the given value.
#Panics
If the given value is out of bounds for unused.
Sourcepub fn with_unused_checked(
self,
new_val: <B30 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_unused_checked( self, new_val: <B30 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of unused set to the given value.
#Errors
If the given value is out of bounds for unused.
Sourcepub fn set_unused(&mut self, new_val: <B30 as Specifier>::InOut)
pub fn set_unused(&mut self, new_val: <B30 as Specifier>::InOut)
Sets the value of unused to the given value.
#Panics
If the given value is out of bounds for unused.
Sourcepub fn set_unused_checked(
&mut self,
new_val: <B30 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_unused_checked( &mut self, new_val: <B30 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of unused to the given value.
#Errors
If the given value is out of bounds for unused.
Trait Implementations§
Source§impl BinRead for StreamEntryFlags
impl BinRead for StreamEntryFlags
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Self
from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Self
from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Self
from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
T
from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Self
from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Self
from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Self
from the reader, assuming little-endian byte order, using
the given arguments. Read moreSource§impl Clone for StreamEntryFlags
impl Clone for StreamEntryFlags
Source§fn clone(&self) -> StreamEntryFlags
fn clone(&self) -> StreamEntryFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more