blob: 58eb5494c035a1c0ed331195fcd4bf1a4530127a [file] [log] [blame]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub(crate) enum ArgPredicate<'help> {
IsPresent,
Equals(&'help std::ffi::OsStr),
}
impl<'help> From<Option<&'help std::ffi::OsStr>> for ArgPredicate<'help> {
fn from(other: Option<&'help std::ffi::OsStr>) -> Self {
match other {
Some(other) => Self::Equals(other),
None => Self::IsPresent,
}
}
}