use crate::lib_bool_enum;
use crate::result::Result;
lib_bool_enum! {
EnhancedAttribute {
Unset = false,
Set = true,
}
}
impl EnhancedAttribute {
pub const fn from_inner(val: bool) -> Self {
Self::from_bool(val)
}
pub const fn try_from_inner(val: bool) -> Result<Self> {
Ok(Self::from_bool(val))
}
pub const fn into_inner(self) -> bool {
self.into_bool()
}
}