Struct OnEquipEvent
pub struct OnEquipEvent<'a> {
pub slot: &'a str,
pub new: Option<&'a ItemStack>,
}Expand description
What Hooks::on_equip is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§slot: &'a str§new: Option<&'a ItemStack>Auto Trait Implementations§
impl<'a> Freeze for OnEquipEvent<'a>
impl<'a> RefUnwindSafe for OnEquipEvent<'a>
impl<'a> Send for OnEquipEvent<'a>
impl<'a> Sync for OnEquipEvent<'a>
impl<'a> Unpin for OnEquipEvent<'a>
impl<'a> UnsafeUnpin for OnEquipEvent<'a>
impl<'a> UnwindSafe for OnEquipEvent<'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