Struct veloren_common::combat::AttackerInfo
source · pub struct AttackerInfo<'a> {
pub entity: Entity,
pub uid: Uid,
pub group: Option<&'a Group>,
pub energy: Option<&'a Energy>,
pub combo: Option<&'a Combo>,
pub inventory: Option<&'a Inventory>,
pub stats: Option<&'a Stats>,
pub mass: Option<&'a Mass>,
}
Fields§
§entity: Entity
§uid: Uid
§group: Option<&'a Group>
§energy: Option<&'a Energy>
§combo: Option<&'a Combo>
§inventory: Option<&'a Inventory>
§stats: Option<&'a Stats>
§mass: Option<&'a Mass>
Trait Implementations§
source§impl<'a> Clone for AttackerInfo<'a>
impl<'a> Clone for AttackerInfo<'a>
source§fn clone(&self) -> AttackerInfo<'a>
fn clone(&self) -> AttackerInfo<'a>
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 From<AttackerInfo<'_>> for DamageContributor
impl From<AttackerInfo<'_>> for DamageContributor
source§fn from(attacker_info: AttackerInfo<'_>) -> Self
fn from(attacker_info: AttackerInfo<'_>) -> Self
Converts to this type from the input type.
impl<'a> Copy for AttackerInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for AttackerInfo<'a>
impl<'a> RefUnwindSafe for AttackerInfo<'a>
impl<'a> Send for AttackerInfo<'a>
impl<'a> Sync for AttackerInfo<'a>
impl<'a> Unpin for AttackerInfo<'a>
impl<'a> UnwindSafe for AttackerInfo<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more