Enum SbcAllocation
#[repr(u32)]pub enum SbcAllocation {
AllocLoudness = 0,
AllocSnr = 1,
}
Variants§
Implementations§
§impl SbcAllocation
impl SbcAllocation
pub fn from_primitive(prim: u32) -> Option<SbcAllocation>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
§impl Clone for SbcAllocation
impl Clone for SbcAllocation
§fn clone(&self) -> SbcAllocation
fn clone(&self) -> SbcAllocation
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 SbcAllocation
impl Debug for SbcAllocation
§impl<D> Decode<SbcAllocation, D> for SbcAllocationwhere
D: ResourceDialect,
impl<D> Decode<SbcAllocation, D> for SbcAllocationwhere
D: ResourceDialect,
§fn new_empty() -> SbcAllocation
fn new_empty() -> SbcAllocation
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<SbcAllocation, D> for SbcAllocationwhere
D: ResourceDialect,
impl<D> Encode<SbcAllocation, D> for SbcAllocationwhere
D: ResourceDialect,
§impl Hash for SbcAllocation
impl Hash for SbcAllocation
§impl Ord for SbcAllocation
impl Ord for SbcAllocation
§impl PartialEq for SbcAllocation
impl PartialEq for SbcAllocation
§impl PartialOrd for SbcAllocation
impl PartialOrd for SbcAllocation
§impl TypeMarker for SbcAllocation
impl TypeMarker for SbcAllocation
§type Owned = SbcAllocation
type Owned = SbcAllocation
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 SbcAllocation
impl ValueTypeMarker for SbcAllocation
§type Borrowed<'a> = SbcAllocation
type Borrowed<'a> = SbcAllocation
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: &<SbcAllocation as TypeMarker>::Owned,
) -> <SbcAllocation as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<SbcAllocation as TypeMarker>::Owned, ) -> <SbcAllocation as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for SbcAllocation
impl Eq for SbcAllocation
impl StructuralPartialEq for SbcAllocation
Auto Trait Implementations§
impl Freeze for SbcAllocation
impl RefUnwindSafe for SbcAllocation
impl Send for SbcAllocation
impl Sync for SbcAllocation
impl Unpin for SbcAllocation
impl UnwindSafe for SbcAllocation
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