Struct swc_ecma_ast::Bool
source · [−]Expand description
A boolean literal.
Creation
If you are creating a boolean literal with a dummy span, please use
true.into()
or false.into()
, instead of creating this struct directly.
All of Box<Expr>
, Expr
, Lit
, Bool
implements From<bool>
.
Fields
span: Span
value: bool
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Bool
impl<'de> Deserialize<'de> for Bool
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EqIgnoreSpan for Bool
impl EqIgnoreSpan for Bool
fn eq_ignore_span(&self, other: &Self) -> bool
impl Copy for Bool
impl Eq for Bool
impl StructuralEq for Bool
impl StructuralPartialEq for Bool
Auto Trait Implementations
impl RefUnwindSafe for Bool
impl Send for Bool
impl Sync for Bool
impl Unpin for Bool
impl UnwindSafe for Bool
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more