pub struct OnLuaShortcutEvent {
pub name: &'static str,
pub player_index: u32,
pub prototype_name: &'static str,
pub tick: u32,
}Expand description
Called when a custom Lua shortcut is pressed.
Fields§
§name: &'static str§player_index: u32§prototype_name: &'static str§tick: u32Trait Implementations§
Source§impl Clone for OnLuaShortcutEvent
impl Clone for OnLuaShortcutEvent
Source§fn clone(&self) -> OnLuaShortcutEvent
fn clone(&self) -> OnLuaShortcutEvent
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 OnLuaShortcutEvent
Source§impl Debug for OnLuaShortcutEvent
impl Debug for OnLuaShortcutEvent
Source§impl Default for OnLuaShortcutEvent
impl Default for OnLuaShortcutEvent
Source§fn default() -> OnLuaShortcutEvent
fn default() -> OnLuaShortcutEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnLuaShortcutEvent
impl PartialEq for OnLuaShortcutEvent
impl StructuralPartialEq for OnLuaShortcutEvent
Auto Trait Implementations§
impl Freeze for OnLuaShortcutEvent
impl RefUnwindSafe for OnLuaShortcutEvent
impl Send for OnLuaShortcutEvent
impl Sync for OnLuaShortcutEvent
impl Unpin for OnLuaShortcutEvent
impl UnsafeUnpin for OnLuaShortcutEvent
impl UnwindSafe for OnLuaShortcutEvent
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