Struct smash_arc::StreamEntryFlags
source · 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 moresource§impl Debug for StreamEntryFlags
impl Debug for StreamEntryFlags
source§impl Hash for StreamEntryFlags
impl Hash for StreamEntryFlags
source§impl PartialEq for StreamEntryFlags
impl PartialEq for StreamEntryFlags
source§fn eq(&self, other: &StreamEntryFlags) -> bool
fn eq(&self, other: &StreamEntryFlags) -> bool
self
and other
values to be equal, and is used
by ==
.