Struct rustdoc::clean::types::ItemLink [−][src]
pub(crate) struct ItemLink {
pub(crate) link: String,
pub(crate) link_text: String,
pub(crate) did: DefId,
pub(crate) fragment: Option<String>,
}Expand description
A link that has not yet been rendered.
This link will be turned into a rendered link by Item::links.
Fields
link: StringThe original link written in the markdown
link_text: StringThe 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: DefIdfragment: Option<String>The url fragment to append to the link
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ItemLink
impl UnwindSafe for ItemLink
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 80 bytes