pub enum ReferenceBase {
Object(JsValue),
Environment(EnvironmentRef),
Unresolvable,
}Expand description
Reference base type. A reference can be based on an object, environment record, or be unresolvable.
Variants§
Object(JsValue)
Reference to a property on an object.
Environment(EnvironmentRef)
Reference to a binding in an environment record.
Unresolvable
Unresolvable reference (identifier not found).
Trait Implementations§
Source§impl Clone for ReferenceBase
impl Clone for ReferenceBase
Source§fn clone(&self) -> ReferenceBase
fn clone(&self) -> ReferenceBase
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 moreAuto Trait Implementations§
impl Freeze for ReferenceBase
impl !RefUnwindSafe for ReferenceBase
impl !Send for ReferenceBase
impl !Sync for ReferenceBase
impl Unpin for ReferenceBase
impl !UnwindSafe for ReferenceBase
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