pub struct OnPreScriptInventoryResizedEvent {
pub inventory: LuaInventory,
pub mod: &'static str,
pub name: &'static str,
pub new_size: u32,
pub old_size: u32,
pub player_index: u32,
pub tick: u32,
}Expand description
Called just before a script inventory is resized.
Fields§
§inventory: LuaInventory§mod: &'static str§name: &'static str§new_size: u32§old_size: u32§player_index: u32§tick: u32Trait Implementations§
Source§impl Clone for OnPreScriptInventoryResizedEvent
impl Clone for OnPreScriptInventoryResizedEvent
Source§fn clone(&self) -> OnPreScriptInventoryResizedEvent
fn clone(&self) -> OnPreScriptInventoryResizedEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OnPreScriptInventoryResizedEvent
Source§impl Default for OnPreScriptInventoryResizedEvent
impl Default for OnPreScriptInventoryResizedEvent
Source§fn default() -> OnPreScriptInventoryResizedEvent
fn default() -> OnPreScriptInventoryResizedEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnPreScriptInventoryResizedEvent
Auto Trait Implementations§
impl Freeze for OnPreScriptInventoryResizedEvent
impl RefUnwindSafe for OnPreScriptInventoryResizedEvent
impl Send for OnPreScriptInventoryResizedEvent
impl Sync for OnPreScriptInventoryResizedEvent
impl Unpin for OnPreScriptInventoryResizedEvent
impl UnsafeUnpin for OnPreScriptInventoryResizedEvent
impl UnwindSafe for OnPreScriptInventoryResizedEvent
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