pub enum BoolLit {
False,
True,
}
Expand description
A bool literal: true
or false
. Also see the reference.
Notice that, strictly speaking, from Rust point of view “boolean literals” are not actual literals but keywords.
Variants§
Implementations§
Trait Implementations§
source§impl PartialEq for BoolLit
impl PartialEq for BoolLit
impl Copy for BoolLit
impl Eq for BoolLit
impl StructuralPartialEq for BoolLit
Auto Trait Implementations§
impl Freeze for BoolLit
impl RefUnwindSafe for BoolLit
impl Send for BoolLit
impl Sync for BoolLit
impl Unpin for BoolLit
impl UnwindSafe for BoolLit
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