[][src]Struct ascetic_cli::App

pub struct App<'a> { /* fields omitted */ }

Methods

impl<'a> App<'a>[src]

pub fn from_clap<'b>(clap_app: App<'a, 'b>) -> Self[src]

pub fn get_name(&self) -> &str[src]

pub fn get_bin_name(&self) -> Option<&str>[src]

pub fn subcommand_name(&self) -> Option<&str>[src]

pub fn value_of<S: AsRef<str>>(&self, key: S) -> Option<&str>[src]

pub fn values_of<S: AsRef<str>>(&self, key: S) -> Option<Values>[src]

pub fn occurrences_of<S: AsRef<str>>(&self, key: S) -> u64[src]

pub fn is_present<S: AsRef<str>>(&self, key: S) -> bool[src]

pub fn set_mode<S: AsRef<str>>(&mut self, mode: S)[src]

pub fn get_mode(&self) -> Option<&str>[src]

pub fn accept_selectors(&mut self, selectors: &[&str])[src]

Accepts a given set of selectors, incrementally.

A selector is a top-level CLI argument which is declared in a .cli file. All selectors are opt-in: if an unaccepted selector occurs in a command line, it will be ignored, with a warning.

pub fn check_selectors(&mut self, all_selectors: &[&str])[src]

pub fn apply_props(&self, ctx: &ContextHandle)[src]

pub fn post_warnings(&self)[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for App<'a>

impl<'a> Send for App<'a>

impl<'a> Sync for App<'a>

impl<'a> Unpin for App<'a>

impl<'a> UnwindSafe for App<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference where
    Inner: Part,
    Outer: Part<PartType = Field<OuterFieldType>>,
    OuterFieldType: HasPart<Inner, RawTarget = OuterFieldType> + PartialRefTarget + ?Sized,
    Reference: HasPart<Outer> + ?Sized

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,