pub struct ChainHop {
pub file: PathBuf,
pub imported_as: String,
pub local_name: String,
pub type_only: bool,
pub depth: u32,
}Expand description
One hop in a caller / callee chain.
Fields§
§file: PathBufThe file at this hop (project-root-relative). For a caller hop this is the importing module; for a callee hop the imported module.
imported_as: StringThe symbol name as imported across the edge (default, * for namespace,
the imported name otherwise).
local_name: StringThe local binding name in the file at this hop.
type_only: boolWhether the import edge is type-only (import type { ... }).
depth: u32The hop’s depth (1 = direct caller/callee of the symbol).
Trait Implementations§
impl Eq for ChainHop
impl StructuralPartialEq for ChainHop
Auto Trait Implementations§
impl Freeze for ChainHop
impl RefUnwindSafe for ChainHop
impl Send for ChainHop
impl Sync for ChainHop
impl Unpin for ChainHop
impl UnsafeUnpin for ChainHop
impl UnwindSafe for ChainHop
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§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.