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