pub enum DamageTypeID {
DamagePrototype(LuaDamagePrototype),
Name(&'static str),
}Expand description
A damage type prototype may be specified in one of two ways.
Variants§
DamagePrototype(LuaDamagePrototype)
Name(&'static str)
Trait Implementations§
Source§impl Clone for DamageTypeID
impl Clone for DamageTypeID
Source§fn clone(&self) -> DamageTypeID
fn clone(&self) -> DamageTypeID
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 DamageTypeID
Source§impl Debug for DamageTypeID
impl Debug for DamageTypeID
Source§impl Default for DamageTypeID
impl Default for DamageTypeID
Source§impl From<&'static str> for DamageTypeID
impl From<&'static str> for DamageTypeID
Source§impl From<DamageTypeID> for LuaAny
impl From<DamageTypeID> for LuaAny
Source§fn from(_: DamageTypeID) -> Self
fn from(_: DamageTypeID) -> Self
Converts to this type from the input type.
Source§impl From<LuaDamagePrototype> for DamageTypeID
impl From<LuaDamagePrototype> for DamageTypeID
Source§fn from(value: LuaDamagePrototype) -> Self
fn from(value: LuaDamagePrototype) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DamageTypeID
impl PartialEq for DamageTypeID
impl StructuralPartialEq for DamageTypeID
Auto Trait Implementations§
impl Freeze for DamageTypeID
impl RefUnwindSafe for DamageTypeID
impl Send for DamageTypeID
impl Sync for DamageTypeID
impl Unpin for DamageTypeID
impl UnsafeUnpin for DamageTypeID
impl UnwindSafe for DamageTypeID
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