use alux_ext::ext;
#[ext(name = OptionExt)]
pub impl<T> Option<T> {
#[inline]
fn is_some_eq(&self, other: &T) -> bool
where
T: PartialEq<T>,
{
self.as_ref().is_some_and(|t| t == other)
}
#[inline]
fn map_into<R>(self) -> Option<R>
where
T: Into<R>,
{
self.map(Into::into)
}
}