Enum webrender_api::YuvColorSpace
source · #[repr(u8)]pub enum YuvColorSpace {
Rec601 = 0,
Rec709 = 1,
Rec2020 = 2,
Identity = 3,
}
Variants§
Implementations§
source§impl YuvColorSpace
impl YuvColorSpace
pub fn with_range(self, range: ColorRange) -> YuvRangedColorSpace
Trait Implementations§
source§impl Clone for YuvColorSpace
impl Clone for YuvColorSpace
source§fn clone(&self) -> YuvColorSpace
fn clone(&self) -> YuvColorSpace
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 YuvColorSpace
impl Debug for YuvColorSpace
source§impl Default for YuvColorSpace
impl Default for YuvColorSpace
source§impl<'de> Deserialize<'de> for YuvColorSpace
impl<'de> Deserialize<'de> for YuvColorSpace
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for YuvColorSpace
impl Hash for YuvColorSpace
source§impl MallocSizeOf for YuvColorSpace
impl MallocSizeOf for YuvColorSpace
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq for YuvColorSpace
impl PartialEq for YuvColorSpace
source§impl Peek for YuvColorSpace
impl Peek for YuvColorSpace
source§impl Poke for YuvColorSpace
impl Poke for YuvColorSpace
source§impl Serialize for YuvColorSpace
impl Serialize for YuvColorSpace
impl Copy for YuvColorSpace
impl Eq for YuvColorSpace
impl StructuralPartialEq for YuvColorSpace
Auto Trait Implementations§
impl Freeze for YuvColorSpace
impl RefUnwindSafe for YuvColorSpace
impl Send for YuvColorSpace
impl Sync for YuvColorSpace
impl Unpin for YuvColorSpace
impl UnwindSafe for YuvColorSpace
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
)