pub enum EffectOperator {
PreAssign,
PreMul,
PreDiv,
ModAdd,
ModSub,
PostMul,
PostDiv,
PostPercent,
PostAssign,
}Expand description
How a modifier changes an attribute. They are applied in this order.
Variants§
PreAssign
Set the value, before anything else.
PreMul
Multiply the value.
PreDiv
Divide the value.
ModAdd
Add to the value.
ModSub
Subtract from the value.
PostMul
Multiply the value, after adding.
PostDiv
Divide the value, after adding.
PostPercent
Change the value by a percentage.
PostAssign
Set the value, after everything else.
Trait Implementations§
Source§impl Clone for EffectOperator
impl Clone for EffectOperator
impl Copy for EffectOperator
Source§impl Debug for EffectOperator
impl Debug for EffectOperator
impl Eq for EffectOperator
Source§impl IntoEnumIterator for EffectOperator
impl IntoEnumIterator for EffectOperator
Source§impl Ord for EffectOperator
impl Ord for EffectOperator
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EffectOperator
impl PartialEq for EffectOperator
Source§impl PartialOrd for EffectOperator
impl PartialOrd for EffectOperator
Source§impl Serialize for EffectOperator
impl Serialize for EffectOperator
impl StructuralPartialEq for EffectOperator
Auto Trait Implementations§
impl Freeze for EffectOperator
impl RefUnwindSafe for EffectOperator
impl Send for EffectOperator
impl Sync for EffectOperator
impl Unpin for EffectOperator
impl UnsafeUnpin for EffectOperator
impl UnwindSafe for EffectOperator
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