pub enum CommandKind {
Branch {
end_code: u16,
parameters: Vec<Parameter>,
},
Multi {
code: u16,
highlight: bool,
},
Single(Vec<Parameter>),
}Variants§
Branch
This command is a branch
The Code is used to place an empty EventCommand at the end of the branch
Multi
This command spans multiple event commands
This type is reserved for multiline text commands
Single(Vec<Parameter>)
This is a basic command
Trait Implementations§
Source§impl Clone for CommandKind
impl Clone for CommandKind
Source§fn clone(&self) -> CommandKind
fn clone(&self) -> CommandKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandKind
impl Debug for CommandKind
Source§impl Default for CommandKind
impl Default for CommandKind
Source§impl<'de> Deserialize<'de> for CommandKind
impl<'de> Deserialize<'de> for CommandKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'_derivative_strum> From<&'_derivative_strum CommandKind> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum CommandKind> for &'static str
Source§fn from(x: &'_derivative_strum CommandKind) -> &'static str
fn from(x: &'_derivative_strum CommandKind) -> &'static str
Converts to this type from the input type.
Source§impl From<CommandKind> for &'static str
impl From<CommandKind> for &'static str
Source§fn from(x: CommandKind) -> &'static str
fn from(x: CommandKind) -> &'static str
Converts to this type from the input type.
Source§impl IntoEnumIterator for CommandKind
impl IntoEnumIterator for CommandKind
type Iterator = CommandKindIter
fn iter() -> CommandKindIter ⓘ
Source§impl PartialEq for CommandKind
impl PartialEq for CommandKind
Auto Trait Implementations§
impl Freeze for CommandKind
impl RefUnwindSafe for CommandKind
impl Send for CommandKind
impl Sync for CommandKind
impl Unpin for CommandKind
impl UnwindSafe for CommandKind
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