[−][src]Struct rustdoc::doctree::Module

pub(crate) struct Module<'hir> {
    pub(crate) name: Option<Symbol>,
    pub(crate) attrs: &'hir [Attribute],
    pub(crate) where_outer: Span,
    pub(crate) where_inner: Span,
    pub(crate) imports: Vec<Import<'hir>>,
    pub(crate) mods: Vec<Module<'hir>>,
    pub(crate) id: HirId,
    pub(crate) items: Vec<(&'hir Item<'hir>, Option<Ident>)>,
    pub(crate) foreigns: Vec<(&'hir ForeignItem<'hir>, Option<Ident>)>,
    pub(crate) macros: Vec<Macro>,
    pub(crate) is_crate: bool,
}

Fields

name: Option<Symbol>attrs: &'hir [Attribute]where_outer: Spanwhere_inner: Spanimports: Vec<Import<'hir>>mods: Vec<Module<'hir>>id: HirIditems: Vec<(&'hir Item<'hir>, Option<Ident>)>foreigns: Vec<(&'hir ForeignItem<'hir>, Option<Ident>)>macros: Vec<Macro>is_crate: bool

Implementations

impl<'hir> Module<'hir>[src]

pub(crate) fn new(
    name: Option<Symbol>,
    attrs: &'hir [Attribute]
) -> Module<'hir>
[src]

Trait Implementations

impl<'_> Clean<Item> for Module<'_>[src]

Auto Trait Implementations

impl<'hir> !RefUnwindSafe for Module<'hir>

impl<'hir> !Send for Module<'hir>

impl<'hir> !Sync for Module<'hir>

impl<'hir> Unpin for Module<'hir>

impl<'hir> !UnwindSafe for Module<'hir>

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, 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]