mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
doc(parser): Explain built-in motivation
This commit is contained in:
parent
d52be32e8e
commit
a3965918bc
1 changed files with 3 additions and 0 deletions
|
@ -9,8 +9,11 @@ pub struct ValueParser(pub(crate) ValueParserInner);
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub(crate) enum ValueParserInner {
|
pub(crate) enum ValueParserInner {
|
||||||
|
// Common enough that we optimize it
|
||||||
String,
|
String,
|
||||||
|
// Common enough that we optimize it
|
||||||
OsString,
|
OsString,
|
||||||
|
// Common enough that we optimize it
|
||||||
PathBuf,
|
PathBuf,
|
||||||
Other(Arc<dyn AnyValueParser + Send + Sync + 'static>),
|
Other(Arc<dyn AnyValueParser + Send + Sync + 'static>),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue