#[repr(transparent)]pub struct Boolean(pub u8);
Expand description
ABI-compatible UEFI boolean.
This is similar to a bool
, but allows values other than 0 or 1 to be
stored without it being undefined behavior.
Any non-zero value is treated as logically true
.
Tuple Fields§
§0: u8
Implementations§
Trait Implementations§
Source§impl Ord for Boolean
impl Ord for Boolean
Source§impl PartialOrd for Boolean
impl PartialOrd for Boolean
impl Copy for Boolean
impl Eq for Boolean
impl StructuralPartialEq for Boolean
Auto Trait Implementations§
impl Freeze for Boolean
impl RefUnwindSafe for Boolean
impl Send for Boolean
impl Sync for Boolean
impl Unpin for Boolean
impl UnwindSafe for Boolean
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more