use crate::lib_enum;
use crate::result::{Error, Result};
lib_enum! {
BootPartitionEnable: u8 {
default: NotEnabled,
error: Error,
NotEnabled = 0x0,
BootPart1 = 0x1,
BootPart2 = 0x2,
UserArea = 0x7,
}
}
impl BootPartitionEnable {
pub const fn try_from_inner(val: u8) -> Result<Self> {
Self::from_raw(val)
}
pub const fn into_inner(self) -> u8 {
self.into_raw()
}
}