Enum ModifierLifetime
#[non_exhaustive]pub enum ModifierLifetime {
Transient,
Permanent,
}Expand description
Whether an attribute modifier is saved with its entity
(AttributeInstance.addPermanentModifier) or lasts until the entity
unloads (addTransientModifier), as the modifiers of worn items and
effects do.
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.
Transient
Not saved: gone when the entity is saved and loaded again.
Permanent
Saved with the entity.
Trait Implementations§
§impl Clone for ModifierLifetime
impl Clone for ModifierLifetime
§fn clone(&self) -> ModifierLifetime
fn clone(&self) -> ModifierLifetime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModifierLifetime
§impl Debug for ModifierLifetime
impl Debug for ModifierLifetime
impl Eq for ModifierLifetime
§impl Hash for ModifierLifetime
impl Hash for ModifierLifetime
§impl PartialEq for ModifierLifetime
impl PartialEq for ModifierLifetime
impl StructuralPartialEq for ModifierLifetime
Auto Trait Implementations§
impl Freeze for ModifierLifetime
impl RefUnwindSafe for ModifierLifetime
impl Send for ModifierLifetime
impl Sync for ModifierLifetime
impl Unpin for ModifierLifetime
impl UnsafeUnpin for ModifierLifetime
impl UnwindSafe for ModifierLifetime
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