Enum webrender_api::image::ColorDepth
source · #[repr(u8)]pub enum ColorDepth {
Color8 = 0,
Color10 = 1,
Color12 = 2,
Color16 = 3,
}
Expand description
Specifies the color depth of an image. Currently only used for YUV images.
Variants§
Color8 = 0
8 bits image (most common)
Color10 = 1
10 bits image
Color12 = 2
12 bits image
Color16 = 3
16 bits image
Implementations§
source§impl ColorDepth
impl ColorDepth
Trait Implementations§
source§impl Clone for ColorDepth
impl Clone for ColorDepth
source§fn clone(&self) -> ColorDepth
fn clone(&self) -> ColorDepth
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 ColorDepth
impl Debug for ColorDepth
source§impl Default for ColorDepth
impl Default for ColorDepth
source§impl<'de> Deserialize<'de> for ColorDepth
impl<'de> Deserialize<'de> for ColorDepth
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 ColorDepth
impl Hash for ColorDepth
source§impl MallocSizeOf for ColorDepth
impl MallocSizeOf for ColorDepth
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 ColorDepth
impl PartialEq for ColorDepth
source§fn eq(&self, other: &ColorDepth) -> bool
fn eq(&self, other: &ColorDepth) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Peek for ColorDepth
impl Peek for ColorDepth
source§impl Poke for ColorDepth
impl Poke for ColorDepth
source§impl Serialize for ColorDepth
impl Serialize for ColorDepth
impl Copy for ColorDepth
impl Eq for ColorDepth
impl StructuralPartialEq for ColorDepth
Auto Trait Implementations§
impl Freeze for ColorDepth
impl RefUnwindSafe for ColorDepth
impl Send for ColorDepth
impl Sync for ColorDepth
impl Unpin for ColorDepth
impl UnwindSafe for ColorDepth
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