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§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)