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: boolTrait Implementations§
Source§impl Clone for DeclarativeEnvironmentRecordBinding
impl Clone for DeclarativeEnvironmentRecordBinding
Source§fn clone(&self) -> DeclarativeEnvironmentRecordBinding
fn clone(&self) -> DeclarativeEnvironmentRecordBinding
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Trace for DeclarativeEnvironmentRecordBinding
impl Trace for DeclarativeEnvironmentRecordBinding
Source§fn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects
Auto Trait Implementations§
impl !Freeze for DeclarativeEnvironmentRecordBinding
impl !RefUnwindSafe for DeclarativeEnvironmentRecordBinding
impl !Send for DeclarativeEnvironmentRecordBinding
impl !Sync for DeclarativeEnvironmentRecordBinding
impl Unpin for DeclarativeEnvironmentRecordBinding
impl !UnwindSafe for DeclarativeEnvironmentRecordBinding
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