Enum world_count::batch::cli::Lang [−][src]
pub enum Lang {
EN,
CN,
}Variants
EN
A subcommand for specify English
CN
A subcommand for specify Chinese
Trait Implementations
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Test whether Self can parse a specific subcommand
Auto Trait Implementations
impl RefUnwindSafe for Lang
impl UnwindSafe for Lang
Blanket Implementations
Convert value to RefCell(value)
Returns Some(self) if it satisfies the given predicate function,
or None if it doesn’t. Read more
Performs operation f with &self, returns the closure result. Read more
Performs operation f with &mut self, returns the closure result. Read more
Consumes self, performs operation f with it, returns the closure result. Read more
Consumes self, performs operation f with it, returns the receiver. Read more
Consumes self, performs operation f on it, returns the updated value. Read more
Returns Some(f()) if it satisfies the given predicate function,
or None if it doesn’t. Read more
Mutably borrows from an owned value. Read more
Executes the given closure block and returns the duration of elapsed time interval.
Executes the given closure block, returns the result of the closure execution and the duration of elapsed time interval. Read more
Executes the given closure block,
returns the receiver self and the duration of elapsed time interval. Read more
