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)]
pub(crate) enum ValueParserInner {
// Common enough that we optimize it
String,
// Common enough that we optimize it
OsString,
// Common enough that we optimize it
PathBuf,
Other(Arc<dyn AnyValueParser + Send + Sync + 'static>),
}