Struct CaptionFontStyle
pub struct CaptionFontStyle {
pub family: Option<CaptionFontFamily>,
pub color: Option<ColorRgba>,
pub relative_size: Option<f32>,
pub char_edge_style: Option<EdgeStyle>,
/* private fields */
}
Expand description
Font, size, and color of closed captions text.
Fields§
§family: Option<CaptionFontFamily>
§color: Option<ColorRgba>
47 CFR §79.103(c)(2) requires at least 3-bit RGB for user override of closed-captions color.
Each color channel should be a finite number otherwise will cause SetAccessibilityInfo to fail with INVALID_VALUE.
relative_size: Option<f32>
Size of closed captions text relative to the default captions size. A range of [0.5, 2] is guaranteed to be supported (as 47 CFR §79.103(c)(4) establishes). Size should be a finite number.
char_edge_style: Option<EdgeStyle>
Trait Implementations§
§impl Clone for CaptionFontStyle
impl Clone for CaptionFontStyle
§fn clone(&self) -> CaptionFontStyle
fn clone(&self) -> CaptionFontStyle
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 CaptionFontStyle
impl Debug for CaptionFontStyle
§impl<D> Decode<CaptionFontStyle, D> for CaptionFontStylewhere
D: ResourceDialect,
impl<D> Decode<CaptionFontStyle, D> for CaptionFontStylewhere
D: ResourceDialect,
§fn new_empty() -> CaptionFontStyle
fn new_empty() -> CaptionFontStyle
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for CaptionFontStyle
impl Default for CaptionFontStyle
§fn default() -> CaptionFontStyle
fn default() -> CaptionFontStyle
Returns the “default value” for a type. Read more
§impl<D> Encode<CaptionFontStyle, D> for &CaptionFontStylewhere
D: ResourceDialect,
impl<D> Encode<CaptionFontStyle, D> for &CaptionFontStylewhere
D: ResourceDialect,
§impl PartialEq for CaptionFontStyle
impl PartialEq for CaptionFontStyle
§impl TypeMarker for CaptionFontStyle
impl TypeMarker for CaptionFontStyle
§type Owned = CaptionFontStyle
type Owned = CaptionFontStyle
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 CaptionFontStyle
impl ValueTypeMarker for CaptionFontStyle
§type Borrowed<'a> = &'a CaptionFontStyle
type Borrowed<'a> = &'a CaptionFontStyle
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: &<CaptionFontStyle as TypeMarker>::Owned,
) -> <CaptionFontStyle as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<CaptionFontStyle as TypeMarker>::Owned, ) -> <CaptionFontStyle as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Persistable for CaptionFontStyle
impl StructuralPartialEq for CaptionFontStyle
Auto Trait Implementations§
impl Freeze for CaptionFontStyle
impl RefUnwindSafe for CaptionFontStyle
impl Send for CaptionFontStyle
impl Sync for CaptionFontStyle
impl Unpin for CaptionFontStyle
impl UnwindSafe for CaptionFontStyle
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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