[−][src]Struct rustdoc::clean::types::Attributes
Fields
doc_strings: Vec<DocFragment>other_attrs: Vec<Attribute>cfg: Option<Arc<Cfg>>span: Option<Span>links: Vec<ItemLink>map from Rust paths to resolved defs and potential URL fragments
inner_docs: boolImplementations
impl Attributes[src]
pub(crate) fn extract_cfg(mi: &MetaItem) -> Option<&MetaItem>[src]
Extracts the content from an attribute #[doc(cfg(content))].
pub(crate) fn extract_include(mi: &MetaItem) -> Option<(String, String)>[src]
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.
pub(crate) fn has_doc_flag(&self, flag: Symbol) -> bool[src]
pub(crate) fn from_ast(
diagnostic: &Handler,
attrs: &[Attribute],
additional_attrs: Option<(&[Attribute], DefId)>
) -> Attributes[src]
diagnostic: &Handler,
attrs: &[Attribute],
additional_attrs: Option<(&[Attribute], DefId)>
) -> Attributes
pub(crate) fn doc_value(&self) -> Option<&str>[src]
Finds the doc attribute as a NameValue and returns the corresponding
value found.
pub(crate) fn collapsed_doc_value(&self) -> Option<String>[src]
Finds all doc attributes as NameValues and returns their corresponding values, joined
with newlines.
pub(crate) fn links(&self, krate: &CrateNum) -> Vec<RenderedLink>[src]
Gets links as a vector
Cache must be populated before call
pub(crate) fn get_doc_aliases(&self) -> FxHashSet<String>[src]
impl Attributes[src]
pub(crate) fn collapse_doc_comments(&mut self)[src]
impl Attributes[src]
pub(crate) fn unindent_doc_comments(&mut self)[src]
Trait Implementations
impl AttributesExt for Attributes[src]
pub(crate) fn lists(&self, name: Symbol) -> ListAttributesIter<'_>ⓘNotable traits for ListAttributesIter<'a>
impl<'a> Iterator for ListAttributesIter<'a> type Item = NestedMetaItem;[src]
Notable traits for ListAttributesIter<'a>
impl<'a> Iterator for ListAttributesIter<'a> type Item = NestedMetaItem;impl Clean<Attributes> for [Attribute][src]
pub(crate) fn clean(&self, cx: &DocContext<'_>) -> Attributes[src]
impl Clone for Attributes[src]
pub fn clone(&self) -> Attributes[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for Attributes[src]
impl Default for Attributes[src]
pub fn default() -> Attributes[src]
impl Eq for Attributes[src]
impl Hash for Attributes[src]
pub fn hash<H: Hasher>(&self, hasher: &mut H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<Attributes> for Attributes[src]
Auto Trait Implementations
impl !RefUnwindSafe for Attributes
impl !Send for Attributes
impl !Sync for Attributes
impl Unpin for Attributes
impl !UnwindSafe for Attributes
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,
pub 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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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.
pub 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.
pub 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>,