Enum initiative_core::app::command::CommandType
source · pub enum CommandType {
Alias(CommandAlias),
App(AppCommand),
Reference(ReferenceCommand),
Storage(StorageCommand),
Time(TimeCommand),
Tutorial(TutorialCommand),
World(WorldCommand),
}
Variants§
Alias(CommandAlias)
App(AppCommand)
Reference(ReferenceCommand)
Storage(StorageCommand)
Time(TimeCommand)
Tutorial(TutorialCommand)
World(WorldCommand)
Implementations§
Trait Implementations§
source§impl Clone for CommandType
impl Clone for CommandType
source§fn clone(&self) -> CommandType
fn clone(&self) -> CommandType
Returns a copy 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 CommandType
impl Debug for CommandType
source§impl Display for CommandType
impl Display for CommandType
source§impl From<AppCommand> for CommandType
impl From<AppCommand> for CommandType
source§fn from(c: AppCommand) -> CommandType
fn from(c: AppCommand) -> CommandType
Converts to this type from the input type.
source§impl From<CommandAlias> for CommandType
impl From<CommandAlias> for CommandType
source§fn from(c: CommandAlias) -> CommandType
fn from(c: CommandAlias) -> CommandType
Converts to this type from the input type.
source§impl From<ReferenceCommand> for CommandType
impl From<ReferenceCommand> for CommandType
source§fn from(c: ReferenceCommand) -> CommandType
fn from(c: ReferenceCommand) -> CommandType
Converts to this type from the input type.
source§impl From<StorageCommand> for CommandType
impl From<StorageCommand> for CommandType
source§fn from(c: StorageCommand) -> CommandType
fn from(c: StorageCommand) -> CommandType
Converts to this type from the input type.
source§impl From<TimeCommand> for CommandType
impl From<TimeCommand> for CommandType
source§fn from(c: TimeCommand) -> CommandType
fn from(c: TimeCommand) -> CommandType
Converts to this type from the input type.
source§impl From<TutorialCommand> for CommandType
impl From<TutorialCommand> for CommandType
source§fn from(c: TutorialCommand) -> CommandType
fn from(c: TutorialCommand) -> CommandType
Converts to this type from the input type.
source§impl From<WorldCommand> for CommandType
impl From<WorldCommand> for CommandType
source§fn from(c: WorldCommand) -> CommandType
fn from(c: WorldCommand) -> CommandType
Converts to this type from the input type.
source§impl PartialEq for CommandType
impl PartialEq for CommandType
source§fn eq(&self, other: &CommandType) -> bool
fn eq(&self, other: &CommandType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CommandType
impl StructuralPartialEq for CommandType
Auto Trait Implementations§
impl Freeze for CommandType
impl RefUnwindSafe for CommandType
impl Send for CommandType
impl Sync for CommandType
impl Unpin for CommandType
impl UnwindSafe for CommandType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)