pub struct IdentifierReference { /* private fields */ }Expand description
A reference to an identifier in a scope.
Implementations§
Source§impl IdentifierReference
impl IdentifierReference
Sourcepub fn locator(&self) -> BindingLocator
pub fn locator(&self) -> BindingLocator
Get the binding locator for this identifier reference.
Sourcepub fn is_global_object(&self) -> bool
pub fn is_global_object(&self) -> bool
Returns if the binding is on the global object.
Sourcepub fn is_lexical(&self) -> bool
pub fn is_lexical(&self) -> bool
Check if this identifier reference is lexical.
Trait Implementations§
Source§impl Clone for IdentifierReference
impl Clone for IdentifierReference
Source§fn clone(&self) -> IdentifierReference
fn clone(&self) -> IdentifierReference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IdentifierReference
impl Debug for IdentifierReference
impl Eq for IdentifierReference
Source§impl Hash for IdentifierReference
impl Hash for IdentifierReference
Source§impl PartialEq for IdentifierReference
impl PartialEq for IdentifierReference
impl StructuralPartialEq for IdentifierReference
Auto Trait Implementations§
impl !Send for IdentifierReference
impl !Sync for IdentifierReference
impl Freeze for IdentifierReference
impl RefUnwindSafe for IdentifierReference
impl Unpin for IdentifierReference
impl UnsafeUnpin for IdentifierReference
impl UnwindSafe for IdentifierReference
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.