[−][src]Struct smash_arc::FileInfoFlags
Flags related to a given FileInfo
Implementations
impl FileInfoFlags
[src]
impl FileInfoFlags
[src]
pub const fn into_bytes(self) -> [u8; 4]
[src]
Returns the underlying bits.
Layout
The returned byte array is layed out in the same way as described here.
pub const fn from_bytes(bytes: [u8; 4]) -> Self
[src]
Converts the given bytes directly into the bitfield struct.
impl FileInfoFlags
[src]
pub fn unused(&self) -> <B4 as Specifier>::InOut
[src]
Returns the value of unused.
pub fn unused_or_err(
&self
) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>
[src]
&self
) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>
Returns the value of unused.
#Errors
If the returned value contains an invalid bit pattern for unused.
pub fn with_unused(mut self: Self, new_val: <B4 as Specifier>::InOut) -> Self
[src]
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.
pub fn with_unused_checked(
mut self: Self,
new_val: <B4 as Specifier>::InOut
) -> Result<Self, OutOfBounds>
[src]
mut self: Self,
new_val: <B4 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.
pub fn set_unused(&mut self, new_val: <B4 as Specifier>::InOut)
[src]
Sets the value of unused to the given value.
#Panics
If the given value is out of bounds for unused.
pub fn set_unused_checked(
&mut self,
new_val: <B4 as Specifier>::InOut
) -> Result<(), OutOfBounds>
[src]
&mut self,
new_val: <B4 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.
pub fn is_redirect(&self) -> <bool as Specifier>::InOut
[src]
Returns the value of is_redirect.
pub fn is_redirect_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
[src]
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of is_redirect.
#Errors
If the returned value contains an invalid bit pattern for is_redirect.
pub fn with_is_redirect(
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Self
[src]
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Self
Returns a copy of the bitfield with the value of is_redirect set to the given value.
#Panics
If the given value is out of bounds for is_redirect.
pub fn with_is_redirect_checked(
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
[src]
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of is_redirect set to the given value.
#Errors
If the given value is out of bounds for is_redirect.
pub fn set_is_redirect(&mut self, new_val: <bool as Specifier>::InOut)
[src]
Sets the value of is_redirect to the given value.
#Panics
If the given value is out of bounds for is_redirect.
pub fn set_is_redirect_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
[src]
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of is_redirect to the given value.
#Errors
If the given value is out of bounds for is_redirect.
pub fn unused2(&self) -> <B7 as Specifier>::InOut
[src]
Returns the value of unused2.
pub fn unused2_or_err(
&self
) -> Result<<B7 as Specifier>::InOut, InvalidBitPattern<<B7 as Specifier>::Bytes>>
[src]
&self
) -> Result<<B7 as Specifier>::InOut, InvalidBitPattern<<B7 as Specifier>::Bytes>>
Returns the value of unused2.
#Errors
If the returned value contains an invalid bit pattern for unused2.
pub fn with_unused2(mut self: Self, new_val: <B7 as Specifier>::InOut) -> Self
[src]
Returns a copy of the bitfield with the value of unused2 set to the given value.
#Panics
If the given value is out of bounds for unused2.
pub fn with_unused2_checked(
mut self: Self,
new_val: <B7 as Specifier>::InOut
) -> Result<Self, OutOfBounds>
[src]
mut self: Self,
new_val: <B7 as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of unused2 set to the given value.
#Errors
If the given value is out of bounds for unused2.
pub fn set_unused2(&mut self, new_val: <B7 as Specifier>::InOut)
[src]
Sets the value of unused2 to the given value.
#Panics
If the given value is out of bounds for unused2.
pub fn set_unused2_checked(
&mut self,
new_val: <B7 as Specifier>::InOut
) -> Result<(), OutOfBounds>
[src]
&mut self,
new_val: <B7 as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of unused2 to the given value.
#Errors
If the given value is out of bounds for unused2.
pub fn unknown1(&self) -> <bool as Specifier>::InOut
[src]
Returns the value of unknown1.
pub fn unknown1_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
[src]
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of unknown1.
#Errors
If the returned value contains an invalid bit pattern for unknown1.
pub fn with_unknown1(
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Self
[src]
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Self
Returns a copy of the bitfield with the value of unknown1 set to the given value.
#Panics
If the given value is out of bounds for unknown1.
pub fn with_unknown1_checked(
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
[src]
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of unknown1 set to the given value.
#Errors
If the given value is out of bounds for unknown1.
pub fn set_unknown1(&mut self, new_val: <bool as Specifier>::InOut)
[src]
Sets the value of unknown1 to the given value.
#Panics
If the given value is out of bounds for unknown1.
pub fn set_unknown1_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
[src]
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of unknown1 to the given value.
#Errors
If the given value is out of bounds for unknown1.
pub fn padding3(&self) -> <B2 as Specifier>::InOut
[src]
Returns the value of padding3.
pub fn padding3_or_err(
&self
) -> Result<<B2 as Specifier>::InOut, InvalidBitPattern<<B2 as Specifier>::Bytes>>
[src]
&self
) -> Result<<B2 as Specifier>::InOut, InvalidBitPattern<<B2 as Specifier>::Bytes>>
Returns the value of padding3.
#Errors
If the returned value contains an invalid bit pattern for padding3.
pub fn with_padding3(mut self: Self, new_val: <B2 as Specifier>::InOut) -> Self
[src]
Returns a copy of the bitfield with the value of padding3 set to the given value.
#Panics
If the given value is out of bounds for padding3.
pub fn with_padding3_checked(
mut self: Self,
new_val: <B2 as Specifier>::InOut
) -> Result<Self, OutOfBounds>
[src]
mut self: Self,
new_val: <B2 as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of padding3 set to the given value.
#Errors
If the given value is out of bounds for padding3.
pub fn set_padding3(&mut self, new_val: <B2 as Specifier>::InOut)
[src]
Sets the value of padding3 to the given value.
#Panics
If the given value is out of bounds for padding3.
pub fn set_padding3_checked(
&mut self,
new_val: <B2 as Specifier>::InOut
) -> Result<(), OutOfBounds>
[src]
&mut self,
new_val: <B2 as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of padding3 to the given value.
#Errors
If the given value is out of bounds for padding3.
pub fn is_regional(&self) -> <bool as Specifier>::InOut
[src]
Returns the value of is_regional.
pub fn is_regional_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
[src]
&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.
pub fn with_is_regional(
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Self
[src]
mut self: 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.
pub fn with_is_regional_checked(
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
[src]
mut self: 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.
pub fn set_is_regional(&mut self, new_val: <bool as Specifier>::InOut)
[src]
Sets the value of is_regional to the given value.
#Panics
If the given value is out of bounds for is_regional.
pub fn set_is_regional_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
[src]
&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.
pub fn is_localized(&self) -> <bool as Specifier>::InOut
[src]
Returns the value of is_localized.
pub fn is_localized_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
[src]
&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.
pub fn with_is_localized(
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Self
[src]
mut self: 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.
pub fn with_is_localized_checked(
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
[src]
mut self: 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.
pub fn set_is_localized(&mut self, new_val: <bool as Specifier>::InOut)
[src]
Sets the value of is_localized to the given value.
#Panics
If the given value is out of bounds for is_localized.
pub fn set_is_localized_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
[src]
&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.
pub fn unused3(&self) -> <B3 as Specifier>::InOut
[src]
Returns the value of unused3.
pub fn unused3_or_err(
&self
) -> Result<<B3 as Specifier>::InOut, InvalidBitPattern<<B3 as Specifier>::Bytes>>
[src]
&self
) -> Result<<B3 as Specifier>::InOut, InvalidBitPattern<<B3 as Specifier>::Bytes>>
Returns the value of unused3.
#Errors
If the returned value contains an invalid bit pattern for unused3.
pub fn with_unused3(mut self: Self, new_val: <B3 as Specifier>::InOut) -> Self
[src]
Returns a copy of the bitfield with the value of unused3 set to the given value.
#Panics
If the given value is out of bounds for unused3.
pub fn with_unused3_checked(
mut self: Self,
new_val: <B3 as Specifier>::InOut
) -> Result<Self, OutOfBounds>
[src]
mut self: Self,
new_val: <B3 as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of unused3 set to the given value.
#Errors
If the given value is out of bounds for unused3.
pub fn set_unused3(&mut self, new_val: <B3 as Specifier>::InOut)
[src]
Sets the value of unused3 to the given value.
#Panics
If the given value is out of bounds for unused3.
pub fn set_unused3_checked(
&mut self,
new_val: <B3 as Specifier>::InOut
) -> Result<(), OutOfBounds>
[src]
&mut self,
new_val: <B3 as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of unused3 to the given value.
#Errors
If the given value is out of bounds for unused3.
pub fn unknown2(&self) -> <bool as Specifier>::InOut
[src]
Returns the value of unknown2.
pub fn unknown2_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
[src]
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of unknown2.
#Errors
If the returned value contains an invalid bit pattern for unknown2.
pub fn with_unknown2(
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Self
[src]
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Self
Returns a copy of the bitfield with the value of unknown2 set to the given value.
#Panics
If the given value is out of bounds for unknown2.
pub fn with_unknown2_checked(
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
[src]
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of unknown2 set to the given value.
#Errors
If the given value is out of bounds for unknown2.
pub fn set_unknown2(&mut self, new_val: <bool as Specifier>::InOut)
[src]
Sets the value of unknown2 to the given value.
#Panics
If the given value is out of bounds for unknown2.
pub fn set_unknown2_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
[src]
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of unknown2 to the given value.
#Errors
If the given value is out of bounds for unknown2.
pub fn unknown3(&self) -> <bool as Specifier>::InOut
[src]
Returns the value of unknown3.
pub fn unknown3_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
[src]
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of unknown3.
#Errors
If the returned value contains an invalid bit pattern for unknown3.
pub fn with_unknown3(
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Self
[src]
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Self
Returns a copy of the bitfield with the value of unknown3 set to the given value.
#Panics
If the given value is out of bounds for unknown3.
pub fn with_unknown3_checked(
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
[src]
mut self: Self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of unknown3 set to the given value.
#Errors
If the given value is out of bounds for unknown3.
pub fn set_unknown3(&mut self, new_val: <bool as Specifier>::InOut)
[src]
Sets the value of unknown3 to the given value.
#Panics
If the given value is out of bounds for unknown3.
pub fn set_unknown3_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
[src]
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of unknown3 to the given value.
#Errors
If the given value is out of bounds for unknown3.
pub fn unused4(&self) -> <B10 as Specifier>::InOut
[src]
Returns the value of unused4.
pub fn unused4_or_err(
&self
) -> Result<<B10 as Specifier>::InOut, InvalidBitPattern<<B10 as Specifier>::Bytes>>
[src]
&self
) -> Result<<B10 as Specifier>::InOut, InvalidBitPattern<<B10 as Specifier>::Bytes>>
Returns the value of unused4.
#Errors
If the returned value contains an invalid bit pattern for unused4.
pub fn with_unused4(mut self: Self, new_val: <B10 as Specifier>::InOut) -> Self
[src]
Returns a copy of the bitfield with the value of unused4 set to the given value.
#Panics
If the given value is out of bounds for unused4.
pub fn with_unused4_checked(
mut self: Self,
new_val: <B10 as Specifier>::InOut
) -> Result<Self, OutOfBounds>
[src]
mut self: Self,
new_val: <B10 as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of unused4 set to the given value.
#Errors
If the given value is out of bounds for unused4.
pub fn set_unused4(&mut self, new_val: <B10 as Specifier>::InOut)
[src]
Sets the value of unused4 to the given value.
#Panics
If the given value is out of bounds for unused4.
pub fn set_unused4_checked(
&mut self,
new_val: <B10 as Specifier>::InOut
) -> Result<(), OutOfBounds>
[src]
&mut self,
new_val: <B10 as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of unused4 to the given value.
#Errors
If the given value is out of bounds for unused4.
Trait Implementations
impl BinRead for FileInfoFlags
[src]
type Args = ()
The type of arguments needed to be supplied in order to read this type, usually a tuple. Read more
fn read_options<R: Read + Seek>(
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<Self>
[src]
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<Self>
fn after_parse<R: Read + Seek>(
&mut self,
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<()>
[src]
&mut self,
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<()>
pub fn read<R>(reader: &mut R) -> Result<Self, Error> where
R: Read + Seek,
[src]
R: Read + Seek,
pub fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error> where
R: Read + Seek,
[src]
R: Read + Seek,
pub fn args_default() -> Option<Self::Args>
[src]
impl CheckTotalSizeMultipleOf8 for FileInfoFlags
[src]
impl Clone for FileInfoFlags
[src]
fn clone(&self) -> FileInfoFlags
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FileInfoFlags
[src]
impl Debug for FileInfoFlags
[src]
impl Eq for FileInfoFlags
[src]
impl Hash for FileInfoFlags
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<FileInfoFlags> for FileInfoFlags
[src]
fn eq(&self, other: &FileInfoFlags) -> bool
[src]
fn ne(&self, other: &FileInfoFlags) -> bool
[src]
impl StructuralEq for FileInfoFlags
[src]
impl StructuralPartialEq for FileInfoFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for FileInfoFlags
[src]
impl Send for FileInfoFlags
[src]
impl Sync for FileInfoFlags
[src]
impl Unpin for FileInfoFlags
[src]
impl UnwindSafe for FileInfoFlags
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,