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,
§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