Struct smash_arc::FileInfoToFileDataBitfield
source · pub struct FileInfoToFileDataBitfield { /* private fields */ }
Implementations§
source§impl FileInfoToFileDataBitfield
impl FileInfoToFileDataBitfield
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 FileInfoToFileDataBitfield
impl FileInfoToFileDataBitfield
sourcepub fn file_info_idx(&self) -> <B24 as Specifier>::InOut
pub fn file_info_idx(&self) -> <B24 as Specifier>::InOut
Returns the value of file_info_idx.
sourcepub fn file_info_idx_or_err(
&self
) -> Result<<B24 as Specifier>::InOut, InvalidBitPattern<<B24 as Specifier>::Bytes>>
pub fn file_info_idx_or_err( &self ) -> Result<<B24 as Specifier>::InOut, InvalidBitPattern<<B24 as Specifier>::Bytes>>
Returns the value of file_info_idx.
#Errors
If the returned value contains an invalid bit pattern for file_info_idx.
sourcepub fn with_file_info_idx(self, new_val: <B24 as Specifier>::InOut) -> Self
pub fn with_file_info_idx(self, new_val: <B24 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of file_info_idx set to the given value.
#Panics
If the given value is out of bounds for file_info_idx.
sourcepub fn with_file_info_idx_checked(
self,
new_val: <B24 as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_file_info_idx_checked( self, new_val: <B24 as Specifier>::InOut ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of file_info_idx set to the given value.
#Errors
If the given value is out of bounds for file_info_idx.
sourcepub fn set_file_info_idx(&mut self, new_val: <B24 as Specifier>::InOut)
pub fn set_file_info_idx(&mut self, new_val: <B24 as Specifier>::InOut)
Sets the value of file_info_idx to the given value.
#Panics
If the given value is out of bounds for file_info_idx.
sourcepub fn set_file_info_idx_checked(
&mut self,
new_val: <B24 as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_file_info_idx_checked( &mut self, new_val: <B24 as Specifier>::InOut ) -> Result<(), OutOfBounds>
Sets the value of file_info_idx to the given value.
#Errors
If the given value is out of bounds for file_info_idx.
sourcepub fn load_type_or_err(
&self
) -> Result<<u8 as Specifier>::InOut, InvalidBitPattern<<u8 as Specifier>::Bytes>>
pub fn load_type_or_err( &self ) -> Result<<u8 as Specifier>::InOut, InvalidBitPattern<<u8 as Specifier>::Bytes>>
Returns the value of load_type.
#Errors
If the returned value contains an invalid bit pattern for load_type.
sourcepub fn with_load_type(self, new_val: <u8 as Specifier>::InOut) -> Self
pub fn with_load_type(self, new_val: <u8 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of load_type set to the given value.
#Panics
If the given value is out of bounds for load_type.
sourcepub fn with_load_type_checked(
self,
new_val: <u8 as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_load_type_checked( self, new_val: <u8 as Specifier>::InOut ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of load_type set to the given value.
#Errors
If the given value is out of bounds for load_type.
sourcepub fn set_load_type(&mut self, new_val: <u8 as Specifier>::InOut)
pub fn set_load_type(&mut self, new_val: <u8 as Specifier>::InOut)
Sets the value of load_type to the given value.
#Panics
If the given value is out of bounds for load_type.
sourcepub fn set_load_type_checked(
&mut self,
new_val: <u8 as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_load_type_checked( &mut self, new_val: <u8 as Specifier>::InOut ) -> Result<(), OutOfBounds>
Sets the value of load_type to the given value.
#Errors
If the given value is out of bounds for load_type.
Trait Implementations§
source§impl BinRead for FileInfoToFileDataBitfield
impl BinRead for FileInfoToFileDataBitfield
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 FileInfoToFileDataBitfield
impl Clone for FileInfoToFileDataBitfield
source§fn clone(&self) -> FileInfoToFileDataBitfield
fn clone(&self) -> FileInfoToFileDataBitfield
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FileInfoToFileDataBitfield
impl Debug for FileInfoToFileDataBitfield
source§impl Hash for FileInfoToFileDataBitfield
impl Hash for FileInfoToFileDataBitfield
source§impl PartialEq for FileInfoToFileDataBitfield
impl PartialEq for FileInfoToFileDataBitfield
source§fn eq(&self, other: &FileInfoToFileDataBitfield) -> bool
fn eq(&self, other: &FileInfoToFileDataBitfield) -> bool
self
and other
values to be equal, and is used
by ==
.