Struct MenuSlotRulesEvent
pub struct MenuSlotRulesEvent<'a> {
pub menu: &'a str,
pub slot: usize,
pub stack: &'a ItemStack,
pub may_place: bool,
pub max_stack: u32,
}Expand description
What MenuPart::menu_slot_rules is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§slot: usize§stack: &'a ItemStack§may_place: bool§max_stack: u32Auto Trait Implementations§
impl<'a> Freeze for MenuSlotRulesEvent<'a>
impl<'a> RefUnwindSafe for MenuSlotRulesEvent<'a>
impl<'a> Send for MenuSlotRulesEvent<'a>
impl<'a> Sync for MenuSlotRulesEvent<'a>
impl<'a> Unpin for MenuSlotRulesEvent<'a>
impl<'a> UnsafeUnpin for MenuSlotRulesEvent<'a>
impl<'a> UnwindSafe for MenuSlotRulesEvent<'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