Enum carlotk::Subcommand
source · pub enum Subcommand {
Repl,
Run,
Latex,
Help,
Version,
}Expand description
Subcommands for the Carlo language executable.
Variants§
Repl
Executes a REPL
Run
Executes a source file
Latex
Converts a source file into LaTeX
Help
Displays a help menu
Version
Displays the version
Trait Implementations§
source§impl Clone for Subcommand
impl Clone for Subcommand
source§fn clone(&self) -> Subcommand
fn clone(&self) -> Subcommand
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 From<&str> for Subcommand
impl From<&str> for Subcommand
Converts a string into a subcommand.
source§impl PartialEq for Subcommand
impl PartialEq for Subcommand
source§fn eq(&self, other: &Subcommand) -> bool
fn eq(&self, other: &Subcommand) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for Subcommand
impl Eq for Subcommand
impl StructuralEq for Subcommand
impl StructuralPartialEq for Subcommand
Auto Trait Implementations§
impl RefUnwindSafe for Subcommand
impl Send for Subcommand
impl Sync for Subcommand
impl Unpin for Subcommand
impl UnwindSafe for Subcommand
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