pub struct EntityEquipmentRef<'a> {
pub mainhand: Option<&'a ItemStack>,
pub offhand: Option<&'a ItemStack>,
pub head: Option<&'a ItemStack>,
pub chest: Option<&'a ItemStack>,
pub legs: Option<&'a ItemStack>,
pub feet: Option<&'a ItemStack>,
}Expand description
Equipment references for an entity.
Fields§
§mainhand: Option<&'a ItemStack>§offhand: Option<&'a ItemStack>§head: Option<&'a ItemStack>§chest: Option<&'a ItemStack>§legs: Option<&'a ItemStack>§feet: Option<&'a ItemStack>Trait Implementations§
Source§impl<'a> Clone for EntityEquipmentRef<'a>
impl<'a> Clone for EntityEquipmentRef<'a>
Source§fn clone(&self) -> EntityEquipmentRef<'a>
fn clone(&self) -> EntityEquipmentRef<'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 EntityEquipmentRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for EntityEquipmentRef<'a>
impl<'a> RefUnwindSafe for EntityEquipmentRef<'a>
impl<'a> Send for EntityEquipmentRef<'a>
impl<'a> Sync for EntityEquipmentRef<'a>
impl<'a> Unpin for EntityEquipmentRef<'a>
impl<'a> UnsafeUnpin for EntityEquipmentRef<'a>
impl<'a> UnwindSafe for EntityEquipmentRef<'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