#[repr(u32)]pub enum SagElement {
ExecutionState = 1,
ApplicationActivity = 4,
}
Variants§
Implementations§
Source§impl SagElement
impl SagElement
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
Trait Implementations§
Source§impl Clone for SagElement
impl Clone for SagElement
Source§fn clone(&self) -> SagElement
fn clone(&self) -> SagElement
Returns a duplicate 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 SagElement
impl Debug for SagElement
Source§impl<D: ResourceDialect> Decode<SagElement, D> for SagElement
impl<D: ResourceDialect> Decode<SagElement, D> for SagElement
Source§impl<D: ResourceDialect> Encode<SagElement, D> for SagElement
impl<D: ResourceDialect> Encode<SagElement, D> for SagElement
Source§impl Hash for SagElement
impl Hash for SagElement
Source§impl Ord for SagElement
impl Ord for SagElement
Source§fn cmp(&self, other: &SagElement) -> Ordering
fn cmp(&self, other: &SagElement) -> 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 SagElement
impl PartialEq for SagElement
Source§impl PartialOrd for SagElement
impl PartialOrd for SagElement
Source§impl TypeMarker for SagElement
impl TypeMarker for SagElement
Source§type Owned = SagElement
type Owned = SagElement
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 SagElement
impl ValueTypeMarker for SagElement
Source§type Borrowed<'a> = SagElement
type Borrowed<'a> = SagElement
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 SagElement
impl Eq for SagElement
impl StructuralPartialEq for SagElement
Auto Trait Implementations§
impl Freeze for SagElement
impl RefUnwindSafe for SagElement
impl Send for SagElement
impl Sync for SagElement
impl Unpin for SagElement
impl UnwindSafe for SagElement
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