Struct veloren_common::resources::PlayerEntity
source · pub struct PlayerEntity(pub Option<Entity>);
Expand description
A resource that stores the player’s entity (on the client), and None on the server
Tuple Fields§
§0: Option<Entity>
Trait Implementations§
source§impl Clone for PlayerEntity
impl Clone for PlayerEntity
source§fn clone(&self) -> PlayerEntity
fn clone(&self) -> PlayerEntity
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PlayerEntity
impl Debug for PlayerEntity
source§impl Default for PlayerEntity
impl Default for PlayerEntity
source§fn default() -> PlayerEntity
fn default() -> PlayerEntity
Returns the “default value” for a type. Read more
impl Copy for PlayerEntity
Auto Trait Implementations§
impl RefUnwindSafe for PlayerEntity
impl Send for PlayerEntity
impl Sync for PlayerEntity
impl Unpin for PlayerEntity
impl UnwindSafe for PlayerEntity
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<Context> SubContext<Context> for Context
impl<Context> SubContext<Context> for Context
fn sub_context(self) -> Context
§impl<T> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
§fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
§fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default
and panics on an error case.