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