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