pub struct Resolution {
pub bindings: Vec<Binding>,
pub uses: Vec<Use>,
}Fields§
§bindings: Vec<Binding>§uses: Vec<Use>Implementations§
Source§impl Resolution
impl Resolution
Sourcepub fn binding_at(&self, offset: u32) -> Option<usize>
pub fn binding_at(&self, offset: u32) -> Option<usize>
The binding the identifier covering offset refers to — whether the
cursor sits on the declaration itself or on any use of it.
Sourcepub fn occurrences(&self, binding: usize) -> Vec<Span>
pub fn occurrences(&self, binding: usize) -> Vec<Span>
The declaration plus every use of binding, in source order.
Trait Implementations§
Source§impl Debug for Resolution
impl Debug for Resolution
Source§impl Default for Resolution
impl Default for Resolution
Source§fn default() -> Resolution
fn default() -> Resolution
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnsafeUnpin for Resolution
impl UnwindSafe for Resolution
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