pub enum Algorithm {
M(Encryption),
AES(Encryption),
DES(Encryption),
}
Variants
M(Encryption)
A subcommand for specify using AES and DES to Decrypt or Encrypt by -e
AES(Encryption)
A subcommand for specify using AES to Decrypt or Encrypt by -e
DES(Encryption)
A subcommand for specify using DES to Decrypt or Encrypt by -e
Trait Implementations
sourceimpl CommandFactory for Algorithm
impl CommandFactory for Algorithm
sourcefn into_app<'b>() -> Command<'b>
fn into_app<'b>() -> Command<'b>
Replaced with `CommandFactory::command
Deprecated, replaced with CommandFactory::command
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Replaced with `CommandFactory::command_for_update
Deprecated, replaced with CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl FromArgMatches for Algorithm
impl FromArgMatches for Algorithm
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
sourcefn update_from_arg_matches<'b>(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches<'b>(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches
to self
.
sourceimpl Parser for Algorithm
impl Parser for Algorithm
sourcefn 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
sourcefn 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.
sourcefn 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
sourcefn 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.
sourceimpl Subcommand for Algorithm
impl Subcommand for Algorithm
sourcefn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
sourcefn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
sourcefn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether Self
can parse a specific subcommand
Auto Trait Implementations
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
Blanket Implementations
sourceimpl<T> AnyExt for T
impl<T> AnyExt for T
sourceimpl<T, R> AnyExt1<R> for T
impl<T, R> AnyExt1<R> for T
sourcefn let_ref<'a>(&'a self, f: impl FnOnce(&'a Self) -> R) -> R
fn let_ref<'a>(&'a self, f: impl FnOnce(&'a Self) -> R) -> R
Performs operation f
with &self
, returns the closure result. Read more
sourcefn let_mut<'a>(&'a mut self, f: impl FnOnce(&'a mut Self) -> R) -> R
fn let_mut<'a>(&'a mut self, f: impl FnOnce(&'a mut Self) -> R) -> R
Performs operation f
with &mut self
, returns the closure result. Read more
sourcefn let_owned(self, f: impl FnOnce(Self) -> R) -> R
fn let_owned(self, f: impl FnOnce(Self) -> R) -> R
Consumes self
, performs operation f
with it, returns the closure result. Read more
sourcefn also_ref(self, f: impl FnOnce(&Self) -> R) -> Self
fn also_ref(self, f: impl FnOnce(&Self) -> R) -> Self
Consumes self
, performs operation f
with it, returns the receiver. Read more
sourcefn also_mut(self, f: impl FnOnce(&mut Self) -> R) -> Self
fn also_mut(self, f: impl FnOnce(&mut Self) -> R) -> Self
Consumes self
, performs operation f
on it, returns the updated value. Read more
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, R> StdAnyExt1<R> for T
impl<T, R> StdAnyExt1<R> for T
sourcefn measure_time(self, f: impl FnOnce(Self) -> R) -> Duration
fn measure_time(self, f: impl FnOnce(Self) -> R) -> Duration
Executes the given closure block and returns the duration of elapsed time interval.
sourcefn measure_time_with_value(self, f: impl FnOnce(Self) -> R) -> (R, Duration)
fn measure_time_with_value(self, f: impl FnOnce(Self) -> R) -> (R, Duration)
Executes the given closure block, returns the result of the closure execution and the duration of elapsed time interval. Read more