pub struct ResourceReferenceFlagsStandard(/* private fields */);
Implementations§
Source§impl ResourceReferenceFlagsStandard
impl ResourceReferenceFlagsStandard
Sourcepub const fn language_code(&self) -> u8
pub const fn language_code(&self) -> u8
Bits: 0..5
Sourcepub const fn with_language_code_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_language_code_checked(self, value: u8) -> Result<Self, ()>
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 const fn set_language_code(&mut self, value: u8)
pub const 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_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_runtime_acquired_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_runtime_acquired(&mut self, value: bool)
pub const fn set_runtime_acquired(&mut self, value: bool)
Bits: 5..6
Sourcepub const fn set_runtime_acquired_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_runtime_acquired_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(
self,
value: ReferenceType,
) -> Result<Self, ()>
pub const fn with_reference_type_checked( self, value: ReferenceType, ) -> Result<Self, ()>
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 const fn set_reference_type(&mut self, value: ReferenceType)
pub const fn set_reference_type(&mut self, value: ReferenceType)
Bits: 6..8
Sourcepub const fn set_reference_type_checked(
&mut self,
value: ReferenceType,
) -> Result<(), ()>
pub const fn set_reference_type_checked( &mut self, value: ReferenceType, ) -> Result<(), ()>
Bits: 6..8
Trait Implementations§
Source§impl BinRead for ResourceReferenceFlagsStandard
impl BinRead for ResourceReferenceFlagsStandard
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 ResourceReferenceFlagsStandard
impl BinWrite for ResourceReferenceFlagsStandard
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 ResourceReferenceFlagsStandard
impl Clone for ResourceReferenceFlagsStandard
Source§fn clone(&self) -> ResourceReferenceFlagsStandard
fn clone(&self) -> ResourceReferenceFlagsStandard
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<ResourceReferenceFlags> for ResourceReferenceFlagsStandard
impl From<ResourceReferenceFlags> for ResourceReferenceFlagsStandard
Source§fn from(value: ResourceReferenceFlags) -> Self
fn from(value: ResourceReferenceFlags) -> Self
Converts to this type from the input type.
Source§impl From<ResourceReferenceFlagsStandard> for u8
impl From<ResourceReferenceFlagsStandard> for u8
Source§fn from(v: ResourceReferenceFlagsStandard) -> u8
fn from(v: ResourceReferenceFlagsStandard) -> u8
Converts to this type from the input type.
Source§impl From<u8> for ResourceReferenceFlagsStandard
impl From<u8> for ResourceReferenceFlagsStandard
Source§impl PartialEq for ResourceReferenceFlagsStandard
impl PartialEq for ResourceReferenceFlagsStandard
Source§fn eq(&self, other: &ResourceReferenceFlagsStandard) -> bool
fn eq(&self, other: &ResourceReferenceFlagsStandard) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl WriteEndian for ResourceReferenceFlagsStandard
impl WriteEndian for ResourceReferenceFlagsStandard
Source§const ENDIAN: EndianKind = binrw::meta::EndianKind::None
const ENDIAN: EndianKind = binrw::meta::EndianKind::None
The endianness of the type.
impl Copy for ResourceReferenceFlagsStandard
impl Eq for ResourceReferenceFlagsStandard
impl StructuralPartialEq for ResourceReferenceFlagsStandard
Auto Trait Implementations§
impl Freeze for ResourceReferenceFlagsStandard
impl RefUnwindSafe for ResourceReferenceFlagsStandard
impl Send for ResourceReferenceFlagsStandard
impl Sync for ResourceReferenceFlagsStandard
impl Unpin for ResourceReferenceFlagsStandard
impl UnwindSafe for ResourceReferenceFlagsStandard
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