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: String

Specify the dictionary name, no dictionary by default

input: String

Specify the input file name

output: String

Specify the output file name

time: TimeUnit

Specify the time unit, support nanos, micros, millis, secs

subcmd: Lang

Set language, support English(en) and Chinese(cn)

Trait Implementations

Append to App so it can instantiate Self. Read more

Append to App so it can update self. Read more

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more

Assign values from ArgMatches to self.

Build an App that can instantiate Self. Read more

Build an App that can update self. Read more

Parse from std::env::args_os(), exit on error

Parse from std::env::args_os(), return Err on error.

Parse from iterator, exit on error

Parse from iterator, return Err on error.

Update from iterator, exit on error

Update from iterator, return Err on error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Chainable drop

Convert value to Some(value)

Convert value to Ok(value)

Convert value to Err(value)

Convert value to Box::new(value)

Convert value to Cell(value)

Convert value to RefCell(value)

Convert value to Rc::new(value)

Convert value to Arc::new(value)

Returns the name of a type as a string slice. Read more

Returns the size of a type in bytes. Read more

Returns Some(self) if it satisfies the given predicate function, or None if it doesn’t. Read more

Returns Some(self) if it doesn’t satisfy the given predicate function, or None if it does. 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

The Y Combinator Read more

Returns Some(f()) if it satisfies the given predicate function, or None if it doesn’t. Read more

Returns Some(f()) if it doesn’t satisfy the given predicate function, or None if it does. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

System output -> with :#?’s println!. Read more

System output -> with :?’s println!. Read more

Consumes self, println! as it is, returns self.

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

Executes the given closure block, returns the receiver self and the duration of elapsed time interval. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.