pub struct Mode {}
Implementations§
Source§impl Mode
impl Mode
Sourcepub fn run(args: ArgsOs)
pub fn run(args: ArgsOs)
Parse parameters, statistical data
Parse command line configuration information based on command line parameters. It may or may not read a file, multiple files, or it may read standard input text from the command line. Use this to collect statistics based on the command line parameter configuration. Using Rayon’s artifact iterator for bulk file processing.
Sourcepub fn erwc<I, T>(args: I)
pub fn erwc<I, T>(args: I)
Open library package method
Receive construction parameters
§Example
use std::ffi::OsString;
let args = vec![
OsString::from("erwc"),
OsString::from("tests/data/sherlock.txt"),
];
ethan_rs_wc::Mode::erwc(args);
§Commandline standard input
$ erwc <<EOF
> 123 456
> abc def
> EOF
§Commandline read files
$ erwc data/sherlock.txt data/test.txt
Trait Implementations§
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more