pub struct BooleanLit(pub bool);
Expand description
Represents either true
or false
Tuple Fields§
§0: bool
Trait Implementations§
Source§impl Clone for BooleanLit
impl Clone for BooleanLit
Source§fn clone(&self) -> BooleanLit
fn clone(&self) -> BooleanLit
Returns a copy 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 BooleanLit
impl Debug for BooleanLit
Source§impl<'a> From<BooleanLit> for ConstValue<'a>
impl<'a> From<BooleanLit> for ConstValue<'a>
Source§fn from(x: BooleanLit) -> Self
fn from(x: BooleanLit) -> Self
Converts to this type from the input type.
Source§impl<'a> From<BooleanLit> for DefaultValue<'a>
impl<'a> From<BooleanLit> for DefaultValue<'a>
Source§fn from(x: BooleanLit) -> Self
fn from(x: BooleanLit) -> Self
Converts to this type from the input type.
Source§impl Hash for BooleanLit
impl Hash for BooleanLit
Source§impl Ord for BooleanLit
impl Ord for BooleanLit
Source§fn cmp(&self, other: &BooleanLit) -> Ordering
fn cmp(&self, other: &BooleanLit) -> 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 BooleanLit
impl PartialEq for BooleanLit
Source§impl PartialOrd for BooleanLit
impl PartialOrd for BooleanLit
impl Copy for BooleanLit
impl Eq for BooleanLit
impl StructuralPartialEq for BooleanLit
Auto Trait Implementations§
impl Freeze for BooleanLit
impl RefUnwindSafe for BooleanLit
impl Send for BooleanLit
impl Sync for BooleanLit
impl Unpin for BooleanLit
impl UnwindSafe for BooleanLit
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