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