pub struct DamageSourceInfo<'a> {
pub damage_type: Option<&'a Identifier>,
pub tags: &'a [Identifier],
pub is_direct: bool,
}Expand description
Damage source information for loot context.
Fields§
§damage_type: Option<&'a Identifier>The damage type identifier.
Tags associated with this damage source.
is_direct: boolWhether this is direct damage (not from a projectile).
Trait Implementations§
Source§impl<'a> Clone for DamageSourceInfo<'a>
impl<'a> Clone for DamageSourceInfo<'a>
Source§fn clone(&self) -> DamageSourceInfo<'a>
fn clone(&self) -> DamageSourceInfo<'a>
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<'a> Copy for DamageSourceInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for DamageSourceInfo<'a>
impl<'a> RefUnwindSafe for DamageSourceInfo<'a>
impl<'a> Send for DamageSourceInfo<'a>
impl<'a> Sync for DamageSourceInfo<'a>
impl<'a> Unpin for DamageSourceInfo<'a>
impl<'a> UnsafeUnpin for DamageSourceInfo<'a>
impl<'a> UnwindSafe for DamageSourceInfo<'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