pub struct DModule {Show 14 fields
pub id: ID,
pub modules: Vec<DModule>,
pub structs: Vec<DStruct>,
pub unions: Vec<DUnion>,
pub enums: Vec<DEnum>,
pub traits: Vec<DTrait>,
pub functions: Vec<DFunction>,
pub constants: Vec<DConstant>,
pub statics: Vec<DStatic>,
pub type_alias: Vec<DTypeAlias>,
pub macros_decl: Vec<DMacroDecl>,
pub macros_func: Vec<DMacroFunc>,
pub macros_attr: Vec<DMacroAttr>,
pub macros_derv: Vec<DMacroDerv>,
}
Expand description
Module tree with structural items. All the items only carry ids without actual data.
Fields§
§id: ID
§modules: Vec<DModule>
§structs: Vec<DStruct>
§unions: Vec<DUnion>
§enums: Vec<DEnum>
§traits: Vec<DTrait>
§functions: Vec<DFunction>
§constants: Vec<DConstant>
§statics: Vec<DStatic>
§type_alias: Vec<DTypeAlias>
§macros_decl: Vec<DMacroDecl>
§macros_func: Vec<DMacroFunc>
§macros_attr: Vec<DMacroAttr>
§macros_derv: Vec<DMacroDerv>
Implementations§
Source§impl DModule
impl DModule
pub fn item_inner_tree(&self, id: &str, map: &IDMap) -> Option<DocTree>
pub fn impl_tree(&self, id: &str, map: &IDMap) -> Option<DocTree>
pub fn implementor_tree(&self, id: &str, map: &IDMap) -> Option<DocTree>
pub fn associated_item_tree(&self, id: &str, map: &IDMap) -> Option<DocTree>
pub fn field_tree(&self, id: &str, map: &IDMap) -> Option<DocTree>
Source§impl DModule
impl DModule
Sourcepub fn current_items_counts(&self) -> ItemCount
pub fn current_items_counts(&self) -> ItemCount
Count the items under current module excluding the current module itself.
Sourcepub fn recursive_items_counts(&self) -> ItemCount
pub fn recursive_items_counts(&self) -> ItemCount
Count all the items excluding the root itself.
Source§impl DModule
impl DModule
pub fn current_impls_counts(&self) -> ImplCounts
pub fn recursive_impls_counts(&self) -> ImplCounts
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DModule
impl<'de> Deserialize<'de> for DModule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DModule
impl RefUnwindSafe for DModule
impl Send for DModule
impl Sync for DModule
impl Unpin for DModule
impl UnwindSafe for DModule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more