pub struct Effects {
pub statuses: EnumMap<Effect, EffectStatus>,
}Expand description
A set of effects status.
Describes what to do for each effect: enable, disable, preserve, xor.
Fields§
§statuses: EnumMap<Effect, EffectStatus>The status of each effect.
Implementations§
Source§impl Effects
impl Effects
Sourcepub const fn empty() -> Effects
pub const fn empty() -> Effects
Return an empty set of effects.
They will all be set to InheritParent.
Sourcepub const fn only(effect: Effect) -> Effects
pub const fn only(effect: Effect) -> Effects
Return a set of effects with only one effect.
It will be set to OppositeParent. Every other effect will be InheritParent.
Trait Implementations§
Source§impl Resolvable for Effects
impl Resolvable for Effects
impl Copy for Effects
impl Eq for Effects
impl StructuralPartialEq for Effects
Auto Trait Implementations§
impl Freeze for Effects
impl RefUnwindSafe for Effects
impl Send for Effects
impl Sync for Effects
impl Unpin for Effects
impl UnwindSafe for Effects
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.