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