doc(parser): Explain built-in motivation

This commit is contained in:
Ed Page 2022-05-13 09:31:35 -05:00
parent d52be32e8e
commit a3965918bc

View file

@ -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>),
} }