pub struct OptionalBool(/* private fields */);Expand description
An Optional for bool with 1 byte size.
std::option::Option<bool> have size 1 since rustc 1.23.
Trait Implementations§
Source§impl Clone for OptionalBool
impl Clone for OptionalBool
Source§fn clone(&self) -> OptionalBool
fn clone(&self) -> OptionalBool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptionalBool
impl Debug for OptionalBool
Source§impl Default for OptionalBool
impl Default for OptionalBool
Source§fn default() -> OptionalBool
fn default() -> OptionalBool
Returns the “default value” for a type. Read more
Source§impl From<bool> for OptionalBool
impl From<bool> for OptionalBool
Source§impl Hash for OptionalBool
impl Hash for OptionalBool
Source§impl Optional<bool> for OptionalBool
impl Optional<bool> for OptionalBool
Source§fn to_option_ref(&self) -> Option<&bool>
fn to_option_ref(&self) -> Option<&bool>
Returns an
Option<&T> that is equivalent to this Optional.Source§fn to_option_mut(&mut self) -> Option<&mut bool>
fn to_option_mut(&mut self) -> Option<&mut bool>
Returns an
Option<&mut T> that is equivalent to this Optional.Source§fn into_option(self) -> Option<bool>
fn into_option(self) -> Option<bool>
Converts this
Optional to the equivalent Option.Source§impl Ord for OptionalBool
impl Ord for OptionalBool
Source§fn cmp(&self, other: &OptionalBool) -> Ordering
fn cmp(&self, other: &OptionalBool) -> Ordering
1.21.0 · 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 PartialEq for OptionalBool
impl PartialEq for OptionalBool
Source§impl PartialOrd for OptionalBool
impl PartialOrd for OptionalBool
impl Copy for OptionalBool
impl Eq for OptionalBool
impl StructuralPartialEq for OptionalBool
Auto Trait Implementations§
impl Freeze for OptionalBool
impl RefUnwindSafe for OptionalBool
impl Send for OptionalBool
impl Sync for OptionalBool
impl Unpin for OptionalBool
impl UnwindSafe for OptionalBool
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