Struct boa::environment::declarative_environment_record::DeclarativeEnvironmentRecordBinding
source · [−]pub struct DeclarativeEnvironmentRecordBinding {
pub value: Option<JsValue>,
pub can_delete: bool,
pub mutable: bool,
pub strict: bool,
}
Expand description
Declarative Bindings have a few properties for book keeping purposes, such as mutability (const vs let). Can it be deleted? and strict mode.
So we need to create a struct to hold these values. From this point onwards, a binding is referring to one of these structures.
Fields
value: Option<JsValue>
can_delete: bool
mutable: bool
strict: bool
Trait Implementations
sourceimpl Clone for DeclarativeEnvironmentRecordBinding
impl Clone for DeclarativeEnvironmentRecordBinding
sourcefn clone(&self) -> DeclarativeEnvironmentRecordBinding
fn clone(&self) -> DeclarativeEnvironmentRecordBinding
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 Trace for DeclarativeEnvironmentRecordBinding
impl Trace for DeclarativeEnvironmentRecordBinding
sourcefn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects Read more
Auto Trait Implementations
impl !RefUnwindSafe for DeclarativeEnvironmentRecordBinding
impl !Send for DeclarativeEnvironmentRecordBinding
impl !Sync for DeclarativeEnvironmentRecordBinding
impl Unpin for DeclarativeEnvironmentRecordBinding
impl !UnwindSafe for DeclarativeEnvironmentRecordBinding
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