pub struct MoveCommandRef<'a> {
pub code: i32,
pub string: &'a [u8],
pub parameter_a: i32,
pub parameter_b: i32,
pub parameter_c: i32,
}Expand description
One move-route command, borrowed from the input buffer.
Unlike an event command, a move command’s payload shape depends on its own code: most codes carry nothing, two carry one integer, and two carry a string followed by one or three integers.
Fields§
§code: i32The command code. See move_code for the ones that carry operands.
string: &'a [u8]The string operand, verbatim. Empty for every code that does not carry one.
parameter_a: i32First integer operand, or 0.
parameter_b: i32Second integer operand, or 0.
parameter_c: i32Third integer operand, or 0.
Trait Implementations§
Source§impl<'a> Clone for MoveCommandRef<'a>
impl<'a> Clone for MoveCommandRef<'a>
Source§impl<'a> Debug for MoveCommandRef<'a>
impl<'a> Debug for MoveCommandRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for MoveCommandRef<'a>
impl<'a> RefUnwindSafe for MoveCommandRef<'a>
impl<'a> Send for MoveCommandRef<'a>
impl<'a> Sync for MoveCommandRef<'a>
impl<'a> Unpin for MoveCommandRef<'a>
impl<'a> UnsafeUnpin for MoveCommandRef<'a>
impl<'a> UnwindSafe for MoveCommandRef<'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