#[repr(i8)]pub enum OptBool {
None = -1,
False = 0,
True = 1,
}Expand description
Optional Boolean with repr(i8)
Variants§
Trait Implementations§
Source§impl Ord for OptBool
impl Ord for OptBool
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for OptBool
impl PartialOrd for OptBool
impl Copy for OptBool
impl Eq for OptBool
impl StructuralPartialEq for OptBool
Auto Trait Implementations§
impl Freeze for OptBool
impl RefUnwindSafe for OptBool
impl Send for OptBool
impl Sync for OptBool
impl Unpin for OptBool
impl UnsafeUnpin for OptBool
impl UnwindSafe for OptBool
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