[][src]Struct smash_arc::FileInfoFlags

pub struct FileInfoFlags { /* fields omitted */ }

Flags related to a given FileInfo

Implementations

impl FileInfoFlags[src]

pub const fn new() -> Self[src]

Returns an instance with zero initialized data.

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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

impl CheckTotalSizeMultipleOf8 for FileInfoFlags[src]

type Size = TotalSize<[(); 0]>

impl Clone for FileInfoFlags[src]

impl Copy for FileInfoFlags[src]

impl Debug for FileInfoFlags[src]

impl Eq for FileInfoFlags[src]

impl Hash for FileInfoFlags[src]

impl PartialEq<FileInfoFlags> for FileInfoFlags[src]

impl StructuralEq for FileInfoFlags[src]

impl StructuralPartialEq for FileInfoFlags[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.