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