Struct trustfall_rustdoc_adapter::IndexedCrate
source · pub struct IndexedCrate<'a> { /* private fields */ }
Expand description
The rustdoc for a crate, together with associated indexed data to speed up common operations.
Besides the parsed rustdoc, it also contains some manually-inlined rustdoc_types::Trait
s
of the most common built-in traits.
This is a temporary step, until we’re able to combine rustdocs of multiple crates.
Implementations§
source§impl<'a> IndexedCrate<'a>
impl<'a> IndexedCrate<'a>
pub fn new(crate_: &'a Crate) -> Self
sourcepub fn publicly_importable_names(&self, id: &'a Id) -> Vec<ImportablePath<'a>>
pub fn publicly_importable_names(&self, id: &'a Id) -> Vec<ImportablePath<'a>>
Return all the paths with which the given item can be imported from this crate.
Trait Implementations§
source§impl<'a> Clone for IndexedCrate<'a>
impl<'a> Clone for IndexedCrate<'a>
source§fn clone(&self) -> IndexedCrate<'a>
fn clone(&self) -> IndexedCrate<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for IndexedCrate<'a>
impl<'a> RefUnwindSafe for IndexedCrate<'a>
impl<'a> Send for IndexedCrate<'a>
impl<'a> Sync for IndexedCrate<'a>
impl<'a> Unpin for IndexedCrate<'a>
impl<'a> UnwindSafe for IndexedCrate<'a>
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