pub struct ResourceReferenceCountAndFlags(/* private fields */);
Implementations§
Source§impl ResourceReferenceCountAndFlags
impl ResourceReferenceCountAndFlags
Sourcepub const fn reference_count(&self) -> u32
pub const fn reference_count(&self) -> u32
Bits: 0..30
Sourcepub const fn with_reference_count_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_reference_count_checked(self, value: u32) -> Result<Self, ()>
Bits: 0..30
Sourcepub const fn with_reference_count(self, value: u32) -> Self
pub const fn with_reference_count(self, value: u32) -> Self
Bits: 0..30
Sourcepub const fn set_reference_count(&mut self, value: u32)
pub const fn set_reference_count(&mut self, value: u32)
Bits: 0..30
Sourcepub const fn set_reference_count_checked(
&mut self,
value: u32,
) -> Result<(), ()>
pub const fn set_reference_count_checked( &mut self, value: u32, ) -> Result<(), ()>
Bits: 0..30
Sourcepub const fn is_new_format(&self) -> bool
pub const fn is_new_format(&self) -> bool
Bits: 30..31
Sourcepub const fn with_is_new_format_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_is_new_format_checked(self, value: bool) -> Result<Self, ()>
Bits: 30..31
Sourcepub const fn with_is_new_format(self, value: bool) -> Self
pub const fn with_is_new_format(self, value: bool) -> Self
Bits: 30..31
Sourcepub const fn set_is_new_format(&mut self, value: bool)
pub const fn set_is_new_format(&mut self, value: bool)
Bits: 30..31
Sourcepub const fn always_true(&self) -> bool
pub const fn always_true(&self) -> bool
Bits: 31..32
Sourcepub const fn with_always_true_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_always_true_checked(self, value: bool) -> Result<Self, ()>
Bits: 31..32
Sourcepub const fn with_always_true(self, value: bool) -> Self
pub const fn with_always_true(self, value: bool) -> Self
Bits: 31..32
Sourcepub const fn set_always_true(&mut self, value: bool)
pub const fn set_always_true(&mut self, value: bool)
Bits: 31..32
Trait Implementations§
Source§impl BinRead for ResourceReferenceCountAndFlags
impl BinRead for ResourceReferenceCountAndFlags
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 ResourceReferenceCountAndFlags
impl BinWrite for ResourceReferenceCountAndFlags
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<W>(&self, writer: &mut W) -> Result<(), Error>
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self
to the writer using default arguments. Read moreSource§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§fn write_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self
to the writer using the given arguments. Read moreSource§impl Clone for ResourceReferenceCountAndFlags
impl Clone for ResourceReferenceCountAndFlags
Source§fn clone(&self) -> ResourceReferenceCountAndFlags
fn clone(&self) -> ResourceReferenceCountAndFlags
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 From<ResourceReferenceCountAndFlags> for u32
impl From<ResourceReferenceCountAndFlags> for u32
Source§fn from(v: ResourceReferenceCountAndFlags) -> u32
fn from(v: ResourceReferenceCountAndFlags) -> u32
Converts to this type from the input type.
Source§impl From<u32> for ResourceReferenceCountAndFlags
impl From<u32> for ResourceReferenceCountAndFlags
Source§impl PartialEq for ResourceReferenceCountAndFlags
impl PartialEq for ResourceReferenceCountAndFlags
Source§fn eq(&self, other: &ResourceReferenceCountAndFlags) -> bool
fn eq(&self, other: &ResourceReferenceCountAndFlags) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl WriteEndian for ResourceReferenceCountAndFlags
impl WriteEndian for ResourceReferenceCountAndFlags
Source§const ENDIAN: EndianKind = binrw::meta::EndianKind::None
const ENDIAN: EndianKind = binrw::meta::EndianKind::None
The endianness of the type.
impl Copy for ResourceReferenceCountAndFlags
impl Eq for ResourceReferenceCountAndFlags
impl StructuralPartialEq for ResourceReferenceCountAndFlags
Auto Trait Implementations§
impl Freeze for ResourceReferenceCountAndFlags
impl RefUnwindSafe for ResourceReferenceCountAndFlags
impl Send for ResourceReferenceCountAndFlags
impl Sync for ResourceReferenceCountAndFlags
impl Unpin for ResourceReferenceCountAndFlags
impl UnwindSafe for ResourceReferenceCountAndFlags
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