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> 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§
§impl<V> AsVertex<V> for V
impl<V> AsVertex<V> for V
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