Enum FallbackGroup
#[repr(u32)]pub enum FallbackGroup {
None = 0,
Serif = 1,
SansSerif = 2,
Monospace = 3,
Cursive = 4,
Fantasy = 5,
}
Expand description
Deprecated. See GenericFontFamily
.
Variants§
Implementations§
§impl FallbackGroup
impl FallbackGroup
pub fn from_primitive(prim: u32) -> Option<FallbackGroup>
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 FallbackGroup
impl Clone for FallbackGroup
§fn clone(&self) -> FallbackGroup
fn clone(&self) -> FallbackGroup
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 FallbackGroup
impl Debug for FallbackGroup
§impl<D> Decode<FallbackGroup, D> for FallbackGroupwhere
D: ResourceDialect,
impl<D> Decode<FallbackGroup, D> for FallbackGroupwhere
D: ResourceDialect,
§fn new_empty() -> FallbackGroup
fn new_empty() -> FallbackGroup
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<FallbackGroup, D> for FallbackGroupwhere
D: ResourceDialect,
impl<D> Encode<FallbackGroup, D> for FallbackGroupwhere
D: ResourceDialect,
§impl Hash for FallbackGroup
impl Hash for FallbackGroup
§impl Ord for FallbackGroup
impl Ord for FallbackGroup
§impl PartialEq for FallbackGroup
impl PartialEq for FallbackGroup
§impl PartialOrd for FallbackGroup
impl PartialOrd for FallbackGroup
§impl TypeMarker for FallbackGroup
impl TypeMarker for FallbackGroup
§type Owned = FallbackGroup
type Owned = FallbackGroup
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 FallbackGroup
impl ValueTypeMarker for FallbackGroup
§type Borrowed<'a> = FallbackGroup
type Borrowed<'a> = FallbackGroup
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: &<FallbackGroup as TypeMarker>::Owned,
) -> <FallbackGroup as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<FallbackGroup as TypeMarker>::Owned, ) -> <FallbackGroup as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for FallbackGroup
impl Eq for FallbackGroup
impl StructuralPartialEq for FallbackGroup
Auto Trait Implementations§
impl Freeze for FallbackGroup
impl RefUnwindSafe for FallbackGroup
impl Send for FallbackGroup
impl Sync for FallbackGroup
impl Unpin for FallbackGroup
impl UnwindSafe for FallbackGroup
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