#[non_exhaustive]pub enum BlendMode {
Show 29 variants
Normal,
Darken,
Multiply,
ColorBurn,
LinearBurn,
Subtract,
DarkerColor,
Lighten,
Screen,
ColorDodge,
GlowDodge,
Add,
AddGlow,
LighterColor,
Overlay,
SoftLight,
HardLight,
Difference,
Exclusion,
VividLight,
LinearLight,
PinLight,
HardMix,
Hue,
Saturation,
Color,
Brightness,
Divide,
PassThrough,
}Expand description
Blending modes, numbered as in LayerComposite.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Normal
通常 (0).
Darken
比較(暗) (1).
Multiply
乗算 (2).
ColorBurn
焼き込みカラー (3).
LinearBurn
焼き込み(リニア) (4).
Subtract
減算 (5).
DarkerColor
カラー比較(暗) (6).
Lighten
比較(明) (7).
Screen
スクリーン (8).
ColorDodge
覆い焼きカラー (9).
GlowDodge
覆い焼き(発光) (10).
Add
加算 (11).
AddGlow
加算(発光) (12).
LighterColor
カラー比較(明) (13).
Overlay
オーバーレイ (14).
SoftLight
ソフトライト (15).
HardLight
ハードライト (16).
Difference
差の絶対値 (21).
Exclusion
除外 (22).
VividLight
ビビッドライト (17).
LinearLight
リニアライト (18).
PinLight
ピンライト (19).
HardMix
ハードミックス (20).
Hue
色相 (23).
Saturation
彩度 (24).
Color
カラー (25).
Brightness
輝度 (26).
Divide
除算 (36).
PassThrough
Folders only: the children blend with what is below the folder.
Implementations§
Source§impl BlendMode
impl BlendMode
Sourcepub fn from_code(code: i64) -> Option<Self>
pub fn from_code(code: i64) -> Option<Self>
The mode of a LayerComposite value (None for unknown values).
Confirmed with a file made in CSP EX that has one layer per mode
(docs/validation/V6-made-files.md). The numbers do not follow the
order of CSP’s mode list: darker / lighter colour, difference,
exclusion and divide were added later.
Trait Implementations§
impl Copy for BlendMode
impl Eq for BlendMode
impl StructuralPartialEq for BlendMode
Auto Trait Implementations§
impl Freeze for BlendMode
impl RefUnwindSafe for BlendMode
impl Send for BlendMode
impl Sync for BlendMode
impl Unpin for BlendMode
impl UnsafeUnpin for BlendMode
impl UnwindSafe for BlendMode
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> 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.