use crate::lib_bool_enum;
use crate::result::Result;
lib_bool_enum! {
Flush {
ResetValue = false,
Trigger = true,
}
}
impl Flush {
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()
}
}