Struct fidl_fuchsia_settings::CaptionFontStyle
source · 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§
source§impl Clone for CaptionFontStyle
impl Clone for CaptionFontStyle
source§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 moresource§impl Debug for CaptionFontStyle
impl Debug for CaptionFontStyle
source§impl Decode<CaptionFontStyle> for CaptionFontStyle
impl Decode<CaptionFontStyle> for CaptionFontStyle
source§impl Default for CaptionFontStyle
impl Default for CaptionFontStyle
source§fn default() -> CaptionFontStyle
fn default() -> CaptionFontStyle
Returns the “default value” for a type. Read more
source§impl Encode<CaptionFontStyle> for &CaptionFontStyle
impl Encode<CaptionFontStyle> for &CaptionFontStyle
source§impl PartialEq for CaptionFontStyle
impl PartialEq for CaptionFontStyle
source§fn eq(&self, other: &CaptionFontStyle) -> bool
fn eq(&self, other: &CaptionFontStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for CaptionFontStyle
impl TypeMarker for CaptionFontStyle
§type Owned = CaptionFontStyle
type Owned = CaptionFontStyle
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
.§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.source§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 moreimpl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)