pub struct BindingLocator { /* private fields */ }Expand description
A binding locator contains all information about a binding that is needed to resolve it at runtime.
Implementations§
Source§impl BindingLocator
impl BindingLocator
Sourcepub fn scope(&self) -> BindingLocatorScope
pub fn scope(&self) -> BindingLocatorScope
Returns the scope of the binding.
Sourcepub fn set_scope(&mut self, scope: BindingLocatorScope)
pub fn set_scope(&mut self, scope: BindingLocatorScope)
Sets the scope of the binding.
Sourcepub const fn binding_index(&self) -> u32
pub const fn binding_index(&self) -> u32
Returns the binding index of the binding.
Sourcepub fn set_binding_index(&mut self, index: u32)
pub fn set_binding_index(&mut self, index: u32)
Sets the binding index of the binding.
Sourcepub fn unique_scope_id(&self) -> u32
pub fn unique_scope_id(&self) -> u32
Returns the unique scope ID of the binding.
Trait Implementations§
Source§impl Clone for BindingLocator
impl Clone for BindingLocator
Source§fn clone(&self) -> BindingLocator
fn clone(&self) -> BindingLocator
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 BindingLocator
impl Debug for BindingLocator
impl Eq for BindingLocator
Source§impl Hash for BindingLocator
impl Hash for BindingLocator
Source§impl PartialEq for BindingLocator
impl PartialEq for BindingLocator
impl StructuralPartialEq for BindingLocator
Auto Trait Implementations§
impl !Send for BindingLocator
impl !Sync for BindingLocator
impl Freeze for BindingLocator
impl RefUnwindSafe for BindingLocator
impl Unpin for BindingLocator
impl UnsafeUnpin for BindingLocator
impl UnwindSafe for BindingLocator
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.