cosmic::app

Trait CosmicFlags

source
pub trait CosmicFlags {
    type SubCommand: ToString + Debug + Clone + Send + 'static;
    type Args: Into<Vec<String>> + Debug + Clone + Send + 'static;

    // Provided methods
    fn action(&self) -> Option<&Self::SubCommand> { ... }
    fn args(&self) -> Vec<&str> { ... }
}

Required Associated Types§

source

type SubCommand: ToString + Debug + Clone + Send + 'static

source

type Args: Into<Vec<String>> + Debug + Clone + Send + 'static

Provided Methods§

source

fn action(&self) -> Option<&Self::SubCommand>

source

fn args(&self) -> Vec<&str>

Implementors§