#[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§
Source§impl CompositeMode
impl CompositeMode
Sourcepub fn new(raw: u8) -> CompositeMode
pub fn new(raw: u8) -> CompositeMode
Create from a raw scalar.
This will never fail; unknown values will be mapped to the Unknown
variant
Trait Implementations§
Source§impl Clone for CompositeMode
impl Clone for CompositeMode
Source§fn clone(&self) -> CompositeMode
fn clone(&self) -> CompositeMode
Returns a duplicate 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<'de> Deserialize<'de> for CompositeMode
impl<'de> Deserialize<'de> for CompositeMode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompositeMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompositeMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FontWrite for CompositeMode
impl FontWrite for CompositeMode
Source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
Source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
The type of this table. Read more
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§impl PartialOrd for CompositeMode
impl PartialOrd for CompositeMode
Source§impl Scalar for CompositeMode
impl Scalar for CompositeMode
Source§fn from_raw(raw: <CompositeMode as Scalar>::Raw) -> CompositeMode
fn from_raw(raw: <CompositeMode as Scalar>::Raw) -> CompositeMode
Create an instance of this type from raw big-endian bytes
Source§impl Serialize for CompositeMode
impl Serialize for CompositeMode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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
Source§impl<T> FromObjRef<BigEndian<T>> for T
impl<T> FromObjRef<BigEndian<T>> for T
Source§fn from_obj_ref(from: &BigEndian<T>, _: FontData<'_>) -> T
fn from_obj_ref(from: &BigEndian<T>, _: FontData<'_>) -> T
Convert
from
to an instance of Self
, using the provided data to resolve offsets.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T
, using the provided data to resolve any offsets.