Enum read_fonts::tables::colr::CompositeMode
source · #[repr(u8)]pub enum CompositeMode {
Show 28 variants
Clear = 0,
Src = 1,
Dest = 2,
SrcOver = 3,
DestOver = 4,
SrcIn = 5,
DestIn = 6,
SrcOut = 7,
DestOut = 8,
SrcAtop = 9,
DestAtop = 10,
Xor = 11,
Plus = 12,
Screen = 13,
Overlay = 14,
Darken = 15,
Lighten = 16,
ColorDodge = 17,
ColorBurn = 18,
HardLight = 19,
SoftLight = 20,
Difference = 21,
Exclusion = 22,
Multiply = 23,
HslHue = 24,
HslSaturation = 25,
HslColor = 26,
HslLuminosity = 27,
// some variants omitted
}
Expand description
CompositeMode enumeration
Variants§
Clear = 0
Src = 1
Dest = 2
SrcOver = 3
DestOver = 4
SrcIn = 5
DestIn = 6
SrcOut = 7
DestOut = 8
SrcAtop = 9
DestAtop = 10
Xor = 11
Plus = 12
Screen = 13
Overlay = 14
Darken = 15
Lighten = 16
ColorDodge = 17
ColorBurn = 18
HardLight = 19
SoftLight = 20
Difference = 21
Exclusion = 22
Multiply = 23
HslHue = 24
HslSaturation = 25
HslColor = 26
HslLuminosity = 27
Implementations§
Trait Implementations§
source§impl Clone for CompositeMode
impl Clone for CompositeMode
source§fn clone(&self) -> CompositeMode
fn clone(&self) -> CompositeMode
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 CompositeMode
impl Debug for CompositeMode
source§impl Default for CompositeMode
impl Default for CompositeMode
source§fn default() -> CompositeMode
fn default() -> CompositeMode
Returns the “default value” for a type. Read more
source§impl<'a> From<CompositeMode> for FieldType<'a>
impl<'a> From<CompositeMode> for FieldType<'a>
source§fn from(src: CompositeMode) -> FieldType<'a>
fn from(src: CompositeMode) -> FieldType<'a>
Converts to this type from the input type.
source§impl Hash for CompositeMode
impl Hash for CompositeMode
source§impl Ord for CompositeMode
impl Ord for CompositeMode
source§fn cmp(&self, other: &CompositeMode) -> Ordering
fn cmp(&self, other: &CompositeMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CompositeMode
impl PartialEq for CompositeMode
source§fn eq(&self, other: &CompositeMode) -> bool
fn eq(&self, other: &CompositeMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CompositeMode
impl PartialOrd for CompositeMode
source§fn partial_cmp(&self, other: &CompositeMode) -> Option<Ordering>
fn partial_cmp(&self, other: &CompositeMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Scalar for CompositeMode
impl Scalar for CompositeMode
impl Copy for CompositeMode
impl Eq for CompositeMode
impl StructuralPartialEq for CompositeMode
Auto Trait Implementations§
impl Freeze for CompositeMode
impl RefUnwindSafe for CompositeMode
impl Send for CompositeMode
impl Sync for CompositeMode
impl Unpin for CompositeMode
impl UnwindSafe for CompositeMode
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> FixedSize for Twhere
T: Scalar,
impl<T> FixedSize for Twhere
T: Scalar,
source§const RAW_BYTE_LEN: usize = _
const RAW_BYTE_LEN: usize = _
The raw size of this type, in bytes. Read more