pub struct EventCommand<'a> {
pub code: i32,
pub indent: i32,
pub string: DbStr<'a>,
pub parameters: Vec<i32>,
}Expand description
One event command, owning its string and parameters.
The borrowing counterpart is EventCommandRef, which needs
no allocator.
Fields§
§code: i32The command code.
indent: i32Nesting depth inside conditional branches and loops.
string: DbStr<'a>The string operand, verbatim.
parameters: Vec<i32>The integer operands.
Trait Implementations§
Source§impl<'a> Clone for EventCommand<'a>
impl<'a> Clone for EventCommand<'a>
Source§impl<'a> Debug for EventCommand<'a>
impl<'a> Debug for EventCommand<'a>
Source§impl<'a> Default for EventCommand<'a>
impl<'a> Default for EventCommand<'a>
impl<'a> Eq for EventCommand<'a>
Source§impl IntoOwned for EventCommand<'_>
impl IntoOwned for EventCommand<'_>
Source§type Owned = EventCommand<'static>
type Owned = EventCommand<'static>
The same shape, owning its data.
Source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Copy anything still borrowed, so the result outlives the input buffer.
Source§impl<'a> PartialEq for EventCommand<'a>
impl<'a> PartialEq for EventCommand<'a>
impl<'a> StructuralPartialEq for EventCommand<'a>
Auto Trait Implementations§
impl<'a> Freeze for EventCommand<'a>
impl<'a> RefUnwindSafe for EventCommand<'a>
impl<'a> Send for EventCommand<'a>
impl<'a> Sync for EventCommand<'a>
impl<'a> Unpin for EventCommand<'a>
impl<'a> UnsafeUnpin for EventCommand<'a>
impl<'a> UnwindSafe for EventCommand<'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