Struct world_count::batch::cli::Args [−][src]
pub struct Args {
pub dictionary: String,
pub input: String,
pub output: String,
pub time: TimeUnit,
pub subcmd: Lang,
}Expand description
Batch processing word-count, support English & Chinese.
Fields
dictionary: StringSpecify the dictionary name, no dictionary by default
input: StringSpecify the input file name
output: StringSpecify the output file name
time: TimeUnitSpecify the time unit, support nanos, micros, millis, secs
subcmd: LangSet language, support English(en) and Chinese(cn)
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.
Auto Trait Implementations
impl RefUnwindSafe for Args
impl UnwindSafe for Args
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
