pub enum FlexibleEmptyEnum {
// some variants omitted
}
Implementations§
Source§impl FlexibleEmptyEnum
impl FlexibleEmptyEnum
pub fn from_primitive(prim: i32) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: i32) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> i32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for FlexibleEmptyEnum
impl Clone for FlexibleEmptyEnum
Source§fn clone(&self) -> FlexibleEmptyEnum
fn clone(&self) -> FlexibleEmptyEnum
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 FlexibleEmptyEnum
impl Debug for FlexibleEmptyEnum
Source§impl<D: ResourceDialect> Decode<FlexibleEmptyEnum, D> for FlexibleEmptyEnum
impl<D: ResourceDialect> Decode<FlexibleEmptyEnum, D> for FlexibleEmptyEnum
Source§impl<D: ResourceDialect> Encode<FlexibleEmptyEnum, D> for FlexibleEmptyEnum
impl<D: ResourceDialect> Encode<FlexibleEmptyEnum, D> for FlexibleEmptyEnum
Source§impl Hash for FlexibleEmptyEnum
impl Hash for FlexibleEmptyEnum
Source§impl Ord for FlexibleEmptyEnum
impl Ord for FlexibleEmptyEnum
Source§fn cmp(&self, other: &FlexibleEmptyEnum) -> Ordering
fn cmp(&self, other: &FlexibleEmptyEnum) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FlexibleEmptyEnum
impl PartialEq for FlexibleEmptyEnum
Source§impl PartialOrd for FlexibleEmptyEnum
impl PartialOrd for FlexibleEmptyEnum
Source§impl TypeMarker for FlexibleEmptyEnum
impl TypeMarker for FlexibleEmptyEnum
Source§type Owned = FlexibleEmptyEnum
type Owned = FlexibleEmptyEnum
The owned Rust type which this FIDL type decodes into.
Source§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.
Source§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
.Source§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 moreSource§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.Source§impl ValueTypeMarker for FlexibleEmptyEnum
impl ValueTypeMarker for FlexibleEmptyEnum
Source§type Borrowed<'a> = FlexibleEmptyEnum
type Borrowed<'a> = FlexibleEmptyEnum
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for FlexibleEmptyEnum
impl Eq for FlexibleEmptyEnum
impl StructuralPartialEq for FlexibleEmptyEnum
Auto Trait Implementations§
impl Freeze for FlexibleEmptyEnum
impl RefUnwindSafe for FlexibleEmptyEnum
impl Send for FlexibleEmptyEnum
impl Sync for FlexibleEmptyEnum
impl Unpin for FlexibleEmptyEnum
impl UnwindSafe for FlexibleEmptyEnum
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
)