pub enum ColorFormat {
Linear,
GammaEncoded,
PremultipliedAlpha,
}Expand description
How a colour’s components are encoded.
Variants§
Linear
Components are linear light.
GammaEncoded
Components carry the colour space’s transfer function. This is what hex colours and most colour pickers give you.
PremultipliedAlpha
Components are linear and already multiplied by alpha.
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
Source§impl Default for ColorFormat
impl Default for ColorFormat
Source§fn default() -> ColorFormat
fn default() -> ColorFormat
Returns the “default value” for a type. Read more
impl Eq for ColorFormat
Source§impl Hash for ColorFormat
impl Hash for ColorFormat
Source§impl PartialEq for ColorFormat
impl PartialEq for ColorFormat
Source§fn eq(&self, other: &ColorFormat) -> bool
fn eq(&self, other: &ColorFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ColorFormat
Auto Trait Implementations§
impl Freeze 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