Enum boa::syntax::ast::node::declaration::DeclarationPattern
source · [−]pub enum DeclarationPattern {
Object(DeclarationPatternObject),
Array(DeclarationPatternArray),
}
Expand description
DeclarationPattern represents an object or array binding pattern.
This enum mostly wraps the functionality of the specific binding pattern types.
More information:
Variants
Object(DeclarationPatternObject)
Array(DeclarationPatternArray)
Implementations
Trait Implementations
sourceimpl Clone for DeclarationPattern
impl Clone for DeclarationPattern
sourcefn clone(&self) -> DeclarationPattern
fn clone(&self) -> DeclarationPattern
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DeclarationPattern
impl Debug for DeclarationPattern
sourceimpl Display for DeclarationPattern
impl Display for DeclarationPattern
sourceimpl Drop for DeclarationPattern
impl Drop for DeclarationPattern
sourceimpl Finalize for DeclarationPattern
impl Finalize for DeclarationPattern
sourceimpl PartialEq<DeclarationPattern> for DeclarationPattern
impl PartialEq<DeclarationPattern> for DeclarationPattern
sourcefn eq(&self, other: &DeclarationPattern) -> bool
fn eq(&self, other: &DeclarationPattern) -> bool
sourceimpl Trace for DeclarationPattern
impl Trace for DeclarationPattern
sourcefn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects Read more
impl StructuralPartialEq for DeclarationPattern
Auto Trait Implementations
impl RefUnwindSafe for DeclarationPattern
impl !Send for DeclarationPattern
impl !Sync for DeclarationPattern
impl Unpin for DeclarationPattern
impl UnwindSafe for DeclarationPattern
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