Enum StrictEnumInt8
#[repr(i8)]pub enum StrictEnumInt8 {
First = 1,
Second = 17,
}
Variants§
Implementations§
§impl StrictEnumInt8
impl StrictEnumInt8
pub fn from_primitive(prim: i8) -> Option<StrictEnumInt8>
pub const fn into_primitive(self) -> i8
Trait Implementations§
§impl Clone for StrictEnumInt8
impl Clone for StrictEnumInt8
§fn clone(&self) -> StrictEnumInt8
fn clone(&self) -> StrictEnumInt8
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 more§impl Debug for StrictEnumInt8
impl Debug for StrictEnumInt8
§impl<D> Decode<StrictEnumInt8, D> for StrictEnumInt8where
D: ResourceDialect,
impl<D> Decode<StrictEnumInt8, D> for StrictEnumInt8where
D: ResourceDialect,
§fn new_empty() -> StrictEnumInt8
fn new_empty() -> StrictEnumInt8
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<StrictEnumInt8, D> for StrictEnumInt8where
D: ResourceDialect,
impl<D> Encode<StrictEnumInt8, D> for StrictEnumInt8where
D: ResourceDialect,
§impl Hash for StrictEnumInt8
impl Hash for StrictEnumInt8
§impl Ord for StrictEnumInt8
impl Ord for StrictEnumInt8
§impl PartialEq for StrictEnumInt8
impl PartialEq for StrictEnumInt8
§impl PartialOrd for StrictEnumInt8
impl PartialOrd for StrictEnumInt8
§impl TypeMarker for StrictEnumInt8
impl TypeMarker for StrictEnumInt8
§type Owned = StrictEnumInt8
type Owned = StrictEnumInt8
The owned Rust type which this FIDL type decodes into.
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for StrictEnumInt8
impl ValueTypeMarker for StrictEnumInt8
§type Borrowed<'a> = StrictEnumInt8
type Borrowed<'a> = StrictEnumInt8
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<StrictEnumInt8 as TypeMarker>::Owned,
) -> <StrictEnumInt8 as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<StrictEnumInt8 as TypeMarker>::Owned, ) -> <StrictEnumInt8 as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for StrictEnumInt8
impl Eq for StrictEnumInt8
impl StructuralPartialEq for StrictEnumInt8
Auto Trait Implementations§
impl Freeze for StrictEnumInt8
impl RefUnwindSafe for StrictEnumInt8
impl Send for StrictEnumInt8
impl Sync for StrictEnumInt8
impl Unpin for StrictEnumInt8
impl UnwindSafe for StrictEnumInt8
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