Enum boa::syntax::ast::node::declaration::BindingPatternTypeObject
source · [−]pub enum BindingPatternTypeObject {
Empty,
SingleName {
ident: Box<str>,
property_name: Box<str>,
default_init: Option<Node>,
},
RestProperty {
ident: Box<str>,
excluded_keys: Vec<Box<str>>,
},
BindingPattern {
ident: Box<str>,
pattern: DeclarationPattern,
default_init: Option<Node>,
},
}
Expand description
BindingPatternTypeObject represents the different types of bindings that an object binding pattern may contain.
More information:
Variants
Empty
Empty represents an empty object binding pattern e.g. { }
.
SingleName
SingleName represents one of the following properties:
SingleNameBinding
with an identifier and an optional default initializer.BindingProperty
with an property name and aSingleNameBinding
as theBindingElement
.
More information:
RestProperty
RestProperty represents a BindingRestProperty
with an identifier.
It also includes a list of the property keys that should be excluded from the rest, because they where already assigned.
More information:
BindingPattern
BindingPattern represents a BindingProperty
with a BindingPattern
as the BindingElement
.
Additionally to the identifier of the new property and the nested binding pattern, this may also include an optional default initializer.
More information:
Trait Implementations
sourceimpl Clone for BindingPatternTypeObject
impl Clone for BindingPatternTypeObject
sourcefn clone(&self) -> BindingPatternTypeObject
fn clone(&self) -> BindingPatternTypeObject
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 BindingPatternTypeObject
impl Debug for BindingPatternTypeObject
sourceimpl Display for BindingPatternTypeObject
impl Display for BindingPatternTypeObject
sourceimpl Drop for BindingPatternTypeObject
impl Drop for BindingPatternTypeObject
sourceimpl Finalize for BindingPatternTypeObject
impl Finalize for BindingPatternTypeObject
sourceimpl PartialEq<BindingPatternTypeObject> for BindingPatternTypeObject
impl PartialEq<BindingPatternTypeObject> for BindingPatternTypeObject
sourcefn eq(&self, other: &BindingPatternTypeObject) -> bool
fn eq(&self, other: &BindingPatternTypeObject) -> bool
sourceimpl Trace for BindingPatternTypeObject
impl Trace for BindingPatternTypeObject
sourcefn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects Read more
impl StructuralPartialEq for BindingPatternTypeObject
Auto Trait Implementations
impl RefUnwindSafe for BindingPatternTypeObject
impl !Send for BindingPatternTypeObject
impl !Sync for BindingPatternTypeObject
impl Unpin for BindingPatternTypeObject
impl UnwindSafe for BindingPatternTypeObject
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