Struct ReleaseUsingEvent
pub struct ReleaseUsingEvent<'a> {
pub stack: &'a ItemStack,
pub entity: Option<i32>,
pub time_left: i32,
pub used: bool,
}Expand description
What ItemPart::release_using is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§stack: &'a ItemStack§entity: Option<i32>§time_left: i32§used: boolAuto Trait Implementations§
impl<'a> Freeze for ReleaseUsingEvent<'a>
impl<'a> RefUnwindSafe for ReleaseUsingEvent<'a>
impl<'a> Send for ReleaseUsingEvent<'a>
impl<'a> Sync for ReleaseUsingEvent<'a>
impl<'a> Unpin for ReleaseUsingEvent<'a>
impl<'a> UnsafeUnpin for ReleaseUsingEvent<'a>
impl<'a> UnwindSafe for ReleaseUsingEvent<'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