#[non_exhaustive]pub enum ColorFormat {
Rgb444,
YCbCr444,
YCbCr422,
YCbCr420,
}Expand description
The colour depth and format phy::TmdsVideo carries; re-exported from display-types
so that implementations name the same types this crate does.
A single color encoding format, used to describe a specific negotiated or candidate
configuration.
Unlike DigitalColorEncoding, which models the 2-bit EDID base block field and therefore
only expresses combinations present in that field, ColorFormat names each encoding
individually. It covers YCbCr 4:2:0, which is signaled through CEA/CTA extension blocks
rather than the base block.
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.
Trait Implementations§
Source§impl Clone for ColorFormat
impl Clone for ColorFormat
Source§fn clone(&self) -> ColorFormat
fn clone(&self) -> ColorFormat
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 ColorFormat
Source§impl Debug for ColorFormat
impl Debug for ColorFormat
impl Eq for ColorFormat
Source§impl Hash for ColorFormat
impl Hash for ColorFormat
Source§impl PartialEq for ColorFormat
impl PartialEq for ColorFormat
impl StructuralPartialEq for ColorFormat
Auto Trait Implementations§
impl Forget for ColorFormat
impl Freeze for ColorFormat
impl Move for ColorFormat
impl RefUnwindSafe for ColorFormat
impl Send for ColorFormat
impl Sync for ColorFormat
impl Unpin for ColorFormat
impl UnsafeUnpin for ColorFormat
impl UnwindSafe for ColorFormat
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