[−][src]Struct rustdoc::clean::types::ItemLink

pub(crate) struct ItemLink {
    pub(crate) link: String,
    pub(crate) link_text: String,
    pub(crate) did: Option<DefId>,
    pub(crate) fragment: Option<String>,
}

A link that has not yet been rendered.

This link will be turned into a rendered link by Attributes::links

Fields

link: String

The original link written in the markdown

link_text: String

The link text displayed in the HTML.

This may not be the same as link if there was a disambiguator in an intra-doc link (e.g. [fn@f])

did: Option<DefId>fragment: Option<String>

The url fragment to append to the link

Trait Implementations

impl Clone for ItemLink[src]

impl Debug for ItemLink[src]

impl Default for ItemLink[src]

impl Eq for ItemLink[src]

impl Hash for ItemLink[src]

impl PartialEq<ItemLink> for ItemLink[src]

impl StructuralEq for ItemLink[src]

impl StructuralPartialEq for ItemLink[src]

Auto Trait Implementations

impl RefUnwindSafe for ItemLink

impl Send for ItemLink

impl Sync for ItemLink

impl Unpin for ItemLink

impl UnwindSafe for ItemLink

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithConstness for T[src]