#[repr(u32)]pub enum CaptionFontFamily {
Unknown = 0,
MonospacedSerif = 1,
ProportionalSerif = 2,
MonospacedSansSerif = 3,
ProportionalSansSerif = 4,
Casual = 5,
Cursive = 6,
SmallCapitals = 7,
}
Expand description
Font family groups for closed captions, specified by 47 CFR §79.102(k).
Variants§
Unknown = 0
MonospacedSerif = 1
ProportionalSerif = 2
MonospacedSansSerif = 3
ProportionalSansSerif = 4
Casual = 5
Cursive = 6
SmallCapitals = 7
Implementations§
Source§impl CaptionFontFamily
impl CaptionFontFamily
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
Source§impl Clone for CaptionFontFamily
impl Clone for CaptionFontFamily
Source§fn clone(&self) -> CaptionFontFamily
fn clone(&self) -> CaptionFontFamily
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 CaptionFontFamily
impl Debug for CaptionFontFamily
Source§impl<D: ResourceDialect> Decode<CaptionFontFamily, D> for CaptionFontFamily
impl<D: ResourceDialect> Decode<CaptionFontFamily, D> for CaptionFontFamily
Source§impl<D: ResourceDialect> Encode<CaptionFontFamily, D> for CaptionFontFamily
impl<D: ResourceDialect> Encode<CaptionFontFamily, D> for CaptionFontFamily
Source§impl Hash for CaptionFontFamily
impl Hash for CaptionFontFamily
Source§impl Ord for CaptionFontFamily
impl Ord for CaptionFontFamily
Source§fn cmp(&self, other: &CaptionFontFamily) -> Ordering
fn cmp(&self, other: &CaptionFontFamily) -> 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 CaptionFontFamily
impl PartialEq for CaptionFontFamily
Source§impl PartialOrd for CaptionFontFamily
impl PartialOrd for CaptionFontFamily
Source§impl TypeMarker for CaptionFontFamily
impl TypeMarker for CaptionFontFamily
Source§type Owned = CaptionFontFamily
type Owned = CaptionFontFamily
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 CaptionFontFamily
impl ValueTypeMarker for CaptionFontFamily
Source§type Borrowed<'a> = CaptionFontFamily
type Borrowed<'a> = CaptionFontFamily
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 CaptionFontFamily
impl Eq for CaptionFontFamily
impl StructuralPartialEq for CaptionFontFamily
Auto Trait Implementations§
impl Freeze for CaptionFontFamily
impl RefUnwindSafe for CaptionFontFamily
impl Send for CaptionFontFamily
impl Sync for CaptionFontFamily
impl Unpin for CaptionFontFamily
impl UnwindSafe for CaptionFontFamily
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
)