Struct rustdoc::clean::Attributes[][src]

pub struct Attributes {
    pub doc_strings: Vec<DocFragment>,
    pub other_attrs: Vec<Attribute>,
    pub cfg: Option<Arc<Cfg>>,
    pub span: Option<Span>,
    pub links: Vec<(String, Option<DefId>, Option<String>)>,
}

Fields

map from Rust paths to resolved defs and potential URL fragments

Methods

impl Attributes
[src]

Extracts the content from an attribute #[doc(cfg(content))].

Reads a MetaItem from within an attribute, looks for whether it is a #[doc(include="file")], and returns the filename and contents of the file as loaded from its expansion.

Finds the doc attribute as a NameValue and returns the corresponding value found.

Finds all doc attributes as NameValues and returns their corresponding values, joined with newlines.

Get links as a vector

Cache must be populated before call

impl Attributes
[src]

impl Attributes
[src]

Trait Implementations

impl Clone for Attributes
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Encodable for Attributes
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

impl Decodable for Attributes
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

impl Debug for Attributes
[src]

Formats the value using the given formatter. Read more

impl Default for Attributes
[src]

Returns the "default value" for a type. Read more

impl PartialEq for Attributes
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Attributes
[src]

impl Hash for Attributes
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl AttributesExt for Attributes
[src]

Important traits for ListAttributesIter<'a>

Finds an attribute as List and returns the list of attributes nested inside.

impl Clean<Attributes> for [Attribute]
[src]

Auto Trait Implementations

impl !Send for Attributes

impl !Sync for Attributes