• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #[derive(Copy, Clone, Debug, PartialEq, Eq)]
2 pub(crate) enum ArgPredicate<'help> {
3     IsPresent,
4     Equals(&'help std::ffi::OsStr),
5 }
6 
7 impl<'help> From<Option<&'help std::ffi::OsStr>> for ArgPredicate<'help> {
from(other: Option<&'help std::ffi::OsStr>) -> Self8     fn from(other: Option<&'help std::ffi::OsStr>) -> Self {
9         match other {
10             Some(other) => Self::Equals(other),
11             None => Self::IsPresent,
12         }
13     }
14 }
15