pub struct ResourceReferenceFlagsV2(/* private fields */);Implementations§
source§impl ResourceReferenceFlagsV2
impl ResourceReferenceFlagsV2
sourcepub const fn language_code(&self) -> u8
pub const fn language_code(&self) -> u8
Bits: 0..5
sourcepub const fn with_language_code(self, value: u8) -> Self
pub const fn with_language_code(self, value: u8) -> Self
Bits: 0..5
sourcepub fn set_language_code(&mut self, value: u8)
pub fn set_language_code(&mut self, value: u8)
Bits: 0..5
sourcepub const fn runtime_acquired(&self) -> bool
pub const fn runtime_acquired(&self) -> bool
Bits: 5..6
sourcepub const fn with_runtime_acquired(self, value: bool) -> Self
pub const fn with_runtime_acquired(self, value: bool) -> Self
Bits: 5..6
sourcepub fn set_runtime_acquired(&mut self, value: bool)
pub fn set_runtime_acquired(&mut self, value: bool)
Bits: 5..6
sourcepub const fn reference_type(&self) -> ReferenceType
pub const fn reference_type(&self) -> ReferenceType
Bits: 6..8
sourcepub const fn with_reference_type(self, value: ReferenceType) -> Self
pub const fn with_reference_type(self, value: ReferenceType) -> Self
Bits: 6..8
sourcepub fn set_reference_type(&mut self, value: ReferenceType)
pub fn set_reference_type(&mut self, value: ReferenceType)
Bits: 6..8
Trait Implementations§
source§impl BinRead for ResourceReferenceFlagsV2
impl BinRead for ResourceReferenceFlagsV2
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 ResourceReferenceFlagsV2
impl BinWrite for ResourceReferenceFlagsV2
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 ResourceReferenceFlagsV2
impl Clone for ResourceReferenceFlagsV2
source§fn clone(&self) -> ResourceReferenceFlagsV2
fn clone(&self) -> ResourceReferenceFlagsV2
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 ResourceReferenceFlagsV2
impl Debug for ResourceReferenceFlagsV2
source§impl Default for ResourceReferenceFlagsV2
impl Default for ResourceReferenceFlagsV2
source§impl From<ResourceReferenceFlags> for ResourceReferenceFlagsV2
impl From<ResourceReferenceFlags> for ResourceReferenceFlagsV2
source§fn from(value: ResourceReferenceFlags) -> Self
fn from(value: ResourceReferenceFlags) -> Self
Converts to this type from the input type.
source§impl From<ResourceReferenceFlagsV2> for u8
impl From<ResourceReferenceFlagsV2> for u8
source§fn from(v: ResourceReferenceFlagsV2) -> u8
fn from(v: ResourceReferenceFlagsV2) -> u8
Converts to this type from the input type.
source§impl From<u8> for ResourceReferenceFlagsV2
impl From<u8> for ResourceReferenceFlagsV2
source§impl PartialEq for ResourceReferenceFlagsV2
impl PartialEq for ResourceReferenceFlagsV2
source§impl WriteEndian for ResourceReferenceFlagsV2
impl WriteEndian for ResourceReferenceFlagsV2
source§const ENDIAN: EndianKind = binrw::meta::EndianKind::None
const ENDIAN: EndianKind = binrw::meta::EndianKind::None
The endianness of the type.
impl Copy for ResourceReferenceFlagsV2
impl Eq for ResourceReferenceFlagsV2
impl StructuralPartialEq for ResourceReferenceFlagsV2
Auto Trait Implementations§
impl Freeze for ResourceReferenceFlagsV2
impl RefUnwindSafe for ResourceReferenceFlagsV2
impl Send for ResourceReferenceFlagsV2
impl Sync for ResourceReferenceFlagsV2
impl Unpin for ResourceReferenceFlagsV2
impl UnwindSafe for ResourceReferenceFlagsV2
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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