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