pub struct PathTree<'gcx> { /* private fields */ }Implementations§
Source§impl<'gcx> PubPathTree<'gcx>
impl<'gcx> PubPathTree<'gcx>
pub const ROOT: NodeIndex = PathTree<, PrivItem>::ROOT
pub fn crate_node(&self) -> NodeIndex
pub fn crate_name(&self) -> String
pub fn types(&self) -> &UniqueTypes<'gcx>
pub fn get_type(&self, tid: TypeId) -> &Type<'gcx>
pub fn contains_generic_param_in_type(&self, tid: TypeId) -> bool
Sourcepub fn search<I>(&self, base: NodeIndex, key: I) -> Option<NodeIndex>where
I: IntoPathSegments,
pub fn search<I>(&self, base: NodeIndex, key: I) -> Option<NodeIndex>where
I: IntoPathSegments,
Finds the node from the given base + key ignoring visibility.
Sourcepub fn traverse<I, F, R>(&self, base: NodeIndex, key: I, f: F) -> Option<R>
pub fn traverse<I, F, R>(&self, base: NodeIndex, key: I, f: F) -> Option<R>
Finds the visible items from the given base + key.
pub fn parent_item<F>(&self, index: NodeIndex, filter: F) -> PathId
pub fn iter(&self) -> impl Iterator<Item = (PathId, PubItem<'_>)>
pub fn get_name_path(&self, index: NodeIndex) -> String
pub fn node(&self, index: NodeIndex) -> PubNode<'_>
pub fn item(&self, pid: PathId) -> PubItem<'_>
pub fn debug_brief(&self) -> Brief<'_, Self>
Trait Implementations§
Source§impl Debug for PubPathTree<'_>
impl Debug for PubPathTree<'_>
Source§impl Default for PubPathTree<'_>
impl Default for PubPathTree<'_>
Auto Trait Implementations§
impl<'gcx> !Freeze for PubPathTree<'gcx>
impl<'gcx> !RefUnwindSafe for PubPathTree<'gcx>
impl<'gcx> !Send for PubPathTree<'gcx>
impl<'gcx> !Sync for PubPathTree<'gcx>
impl<'gcx> Unpin for PubPathTree<'gcx>
impl<'gcx> UnsafeUnpin for PubPathTree<'gcx>
impl<'gcx> !UnwindSafe for PubPathTree<'gcx>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more