[−][src]Struct rustdoc::passes::collect_intra_doc_links::LinkCollector
Fields
cx: &'a DocContext<'tcx>mod_ids: Vec<DefId>kind_side_channel: Cell<Option<DefKind>>This is used to store the kind of associated items,
because clean and the disambiguator code expect them to be different.
See the code for associated items on inherent impls for details.
Implementations
impl<'a, 'tcx> LinkCollector<'a, 'tcx>[src]
fn new(cx: &'a DocContext<'tcx>) -> Self[src]
fn variant_field(
&self,
path_str: &str,
current_item: &Option<String>,
module_id: DefId
) -> Result<(Res, Option<String>), ErrorKind>[src]
&self,
path_str: &str,
current_item: &Option<String>,
module_id: DefId
) -> Result<(Res, Option<String>), ErrorKind>
fn macro_resolve(&self, path_str: &str, parent_id: Option<DefId>) -> Option<Res>[src]
Resolves a string as a macro.
fn resolve(
&self,
path_str: &str,
disambiguator: Option<Disambiguator>,
ns: Namespace,
current_item: &Option<String>,
parent_id: Option<DefId>,
extra_fragment: &Option<String>,
item_opt: Option<&Item>
) -> Result<(Res, Option<String>), ErrorKind>[src]
&self,
path_str: &str,
disambiguator: Option<Disambiguator>,
ns: Namespace,
current_item: &Option<String>,
parent_id: Option<DefId>,
extra_fragment: &Option<String>,
item_opt: Option<&Item>
) -> Result<(Res, Option<String>), ErrorKind>
Resolves a string as a path within a particular namespace. Also returns an optional URL fragment in the case of variants and methods.
Trait Implementations
impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx>[src]
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for LinkCollector<'a, 'tcx>
impl<'a, 'tcx> !Send for LinkCollector<'a, 'tcx>
impl<'a, 'tcx> !Sync for LinkCollector<'a, 'tcx>
impl<'a, 'tcx> Unpin for LinkCollector<'a, 'tcx> where
'tcx: 'a,
'tcx: 'a,
impl<'a, 'tcx> !UnwindSafe for LinkCollector<'a, 'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,