pub struct PackageOffsetFlags(/* private fields */);
Implementations§
Source§impl PackageOffsetFlags
impl PackageOffsetFlags
Sourcepub const fn compressed_size(&self) -> u32
pub const fn compressed_size(&self) -> u32
Bits: 0..31
Sourcepub const fn with_compressed_size_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_compressed_size_checked(self, value: u32) -> Result<Self, ()>
Bits: 0..31
Sourcepub const fn with_compressed_size(self, value: u32) -> Self
pub const fn with_compressed_size(self, value: u32) -> Self
Bits: 0..31
Sourcepub const fn set_compressed_size(&mut self, value: u32)
pub const fn set_compressed_size(&mut self, value: u32)
Bits: 0..31
Sourcepub const fn set_compressed_size_checked(
&mut self,
value: u32,
) -> Result<(), ()>
pub const fn set_compressed_size_checked( &mut self, value: u32, ) -> Result<(), ()>
Bits: 0..31
Sourcepub const fn is_scrambled(&self) -> bool
pub const fn is_scrambled(&self) -> bool
Bits: 31..32
Sourcepub const fn with_is_scrambled_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_is_scrambled_checked(self, value: bool) -> Result<Self, ()>
Bits: 31..32
Sourcepub const fn with_is_scrambled(self, value: bool) -> Self
pub const fn with_is_scrambled(self, value: bool) -> Self
Bits: 31..32
Sourcepub const fn set_is_scrambled(&mut self, value: bool)
pub const fn set_is_scrambled(&mut self, value: bool)
Bits: 31..32
Trait Implementations§
Source§impl BinRead for PackageOffsetFlags
impl BinRead for PackageOffsetFlags
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_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
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>
Read
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>
Read
T
from the reader assuming native-endian byte order. 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>
Read
Self
from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for PackageOffsetFlags
impl BinWrite for PackageOffsetFlags
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self
to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self
to the writer assuming little-endian byte order. Read moreSource§impl Clone for PackageOffsetFlags
impl Clone for PackageOffsetFlags
Source§fn clone(&self) -> PackageOffsetFlags
fn clone(&self) -> PackageOffsetFlags
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PackageOffsetFlags
impl Debug for PackageOffsetFlags
Source§impl Default for PackageOffsetFlags
impl Default for PackageOffsetFlags
Source§impl From<PackageOffsetFlags> for u32
impl From<PackageOffsetFlags> for u32
Source§fn from(v: PackageOffsetFlags) -> u32
fn from(v: PackageOffsetFlags) -> u32
Converts to this type from the input type.
Source§impl From<u32> for PackageOffsetFlags
impl From<u32> for PackageOffsetFlags
Source§impl PartialEq for PackageOffsetFlags
impl PartialEq for PackageOffsetFlags
impl Copy for PackageOffsetFlags
impl Eq for PackageOffsetFlags
impl StructuralPartialEq for PackageOffsetFlags
Auto Trait Implementations§
impl Freeze for PackageOffsetFlags
impl RefUnwindSafe for PackageOffsetFlags
impl Send for PackageOffsetFlags
impl Sync for PackageOffsetFlags
impl Unpin for PackageOffsetFlags
impl UnwindSafe for PackageOffsetFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more