#[non_exhaustive]pub enum Cea608Color {
White,
Green,
Blue,
Cyan,
Red,
Yellow,
Magenta,
}Available on crate feature
decode only.Expand description
Foreground colour of a line-21 caption cell (CTA-608-E Tables 51/53).
Returned by Cea608StyledChar::color; corresponds to the 3-bit colour
index in PAC / mid-row code tables.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for Cea608Color
impl Clone for Cea608Color
Source§fn clone(&self) -> Cea608Color
fn clone(&self) -> Cea608Color
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Cea608Color
Source§impl Debug for Cea608Color
impl Debug for Cea608Color
Source§impl Default for Cea608Color
impl Default for Cea608Color
Source§fn default() -> Cea608Color
fn default() -> Cea608Color
Returns the “default value” for a type. Read more
Source§impl Display for Cea608Color
impl Display for Cea608Color
impl Eq for Cea608Color
Source§impl PartialEq for Cea608Color
impl PartialEq for Cea608Color
Source§fn eq(&self, other: &Cea608Color) -> bool
fn eq(&self, other: &Cea608Color) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Cea608Color
impl Serialize for Cea608Color
impl StructuralPartialEq for Cea608Color
Auto Trait Implementations§
impl Freeze for Cea608Color
impl RefUnwindSafe for Cea608Color
impl Send for Cea608Color
impl Sync for Cea608Color
impl Unpin for Cea608Color
impl UnsafeUnpin for Cea608Color
impl UnwindSafe for Cea608Color
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