pub struct Module {
pub attributes: Attributes,
pub visibility: Visibility,
pub identifier: Identifier,
pub imports: Vec<Import>,
pub objects: Vec<Object>,
pub functions: Vec<Function>,
pub types: Vec<TypeDefinition>,
pub interfaces: Vec<Interface>,
pub modules: Vec<Module>,
}Expand description
Module representation.
Fields§
§attributes: AttributesAttributes.
visibility: VisibilityVisibility.
identifier: IdentifierModule identifier
imports: Vec<Import>Imports.
objects: Vec<Object>Objects.
functions: Vec<Function>Functions.
types: Vec<TypeDefinition>Types.
interfaces: Vec<Interface>Interfaces.
modules: Vec<Module>Sub-modules.
Implementations§
Trait Implementations§
Source§impl CountSymbols for &Module
impl CountSymbols for &Module
fn count_symbols(&self) -> usize
Source§impl CountSymbols for &mut Module
impl CountSymbols for &mut Module
fn count_symbols(&self) -> usize
Source§impl CountSymbols for Module
impl CountSymbols for Module
fn count_symbols(&self) -> usize
Source§impl<'de> Deserialize<'de> for Module
impl<'de> Deserialize<'de> for Module
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
Source§impl<'a> HasBranches<&'a Module> for &'a Library
impl<'a> HasBranches<&'a Module> for &'a Library
Source§fn branches_impl(self) -> impl Iterator<Item = &'a Module>
fn branches_impl(self) -> impl Iterator<Item = &'a Module>
This is the method that should be implemented to provide a way to iterate over the branches of a type.
It’s discouraged to use this method directly. Instead, use the
branches method from the HasBranchesAPIV2 trait.Source§impl<'a> HasBranches<&'a Module> for &'a Module
impl<'a> HasBranches<&'a Module> for &'a Module
Source§fn branches_impl(self) -> impl Iterator<Item = &'a Module>
fn branches_impl(self) -> impl Iterator<Item = &'a Module>
This is the method that should be implemented to provide a way to iterate over the branches of a type.
It’s discouraged to use this method directly. Instead, use the
branches method from the HasBranchesAPIV2 trait.Source§impl<'a> HasBranches<&'a mut Module> for &'a mut Library
impl<'a> HasBranches<&'a mut Module> for &'a mut Library
Source§fn branches_impl(self) -> impl Iterator<Item = &'a mut Module>
fn branches_impl(self) -> impl Iterator<Item = &'a mut Module>
This is the method that should be implemented to provide a way to iterate over the branches of a type.
It’s discouraged to use this method directly. Instead, use the
branches method from the HasBranchesAPIV2 trait.Source§impl<'a> HasBranches<&'a mut Module> for &'a mut Module
impl<'a> HasBranches<&'a mut Module> for &'a mut Module
Source§fn branches_impl(self) -> impl Iterator<Item = &'a mut Module>
fn branches_impl(self) -> impl Iterator<Item = &'a mut Module>
This is the method that should be implemented to provide a way to iterate over the branches of a type.
It’s discouraged to use this method directly. Instead, use the
branches method from the HasBranchesAPIV2 trait.Source§impl<'a> HasGetMut<'a> for Module
impl<'a> HasGetMut<'a> for Module
Source§impl HasPathSegment for Module
impl HasPathSegment for Module
impl StructuralPartialEq for Module
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> HasBranchesAPI for T
impl<T> HasBranchesAPI for T
Source§fn branches_impl2<T>(self) -> impl Iterator<Item = T>where
Self: Sized + HasBranches<T>,
fn branches_impl2<T>(self) -> impl Iterator<Item = T>where
Self: Sized + HasBranches<T>,
This is used internally. Should use
branches instead.Source§impl<'a, T> HasBranchesAPIV2<'a> for T
impl<'a, T> HasBranchesAPIV2<'a> for T
Source§fn branches<T>(&'a self) -> impl Iterator<Item = T>where
&'a Self: HasBranches<T>,
T: 'a,
fn branches<T>(&'a self) -> impl Iterator<Item = T>where
&'a Self: HasBranches<T>,
T: 'a,
Iterates over the branches of a type.
Source§fn branches_mut<T>(&'a mut self) -> impl Iterator<Item = T>where
&'a mut Self: HasBranches<T>,
T: 'a,
fn branches_mut<T>(&'a mut self) -> impl Iterator<Item = T>where
&'a mut Self: HasBranches<T>,
T: 'a,
Iterates over the branches of a type mutably.
fn all_branches<T>(&'a self) -> impl Iterator<Item = T>
fn all_branches_mut<T>(&'a mut self) -> impl Iterator<Item = T>
Source§impl<T> HasGet for T
impl<T> HasGet for T
Source§impl<'a, T> HasGetAPI<'a> for T
impl<'a, T> HasGetAPI<'a> for T
Source§impl<'a, T> HasRelative<'a> for T
impl<'a, T> HasRelative<'a> for T
Source§fn relative<K>(&'a self, path: impl IntoIterator<Item = K>) -> Option<Self>where
K: Into<String>,
Self: KnowsVisitor<Visitor = Self> + Clone + HasRoot + HasParent + HasPathSegment,
&'a Self: HasBranches<Self>,
fn relative<K>(&'a self, path: impl IntoIterator<Item = K>) -> Option<Self>where
K: Into<String>,
Self: KnowsVisitor<Visitor = Self> + Clone + HasRoot + HasParent + HasPathSegment,
&'a Self: HasBranches<Self>,
Gets a relative path.
“self”, “root”, and “super” are reserved path segments.
“self” is the current object, “root” is the root object, and “super” is the parent object.
Source§impl<'a, T> HasRelativeMut<'a> for T
impl<'a, T> HasRelativeMut<'a> for T
Source§unsafe fn relative_mut<K>(
&'a mut self,
path: impl IntoIterator<Item = K>,
) -> Option<Self>where
K: Into<String>,
Self: Sized + KnowsVisitor<VisitorMut = Self> + UnsafeClone + HasRootMut + HasParentMut + HasPathSegment,
&'a mut Self: HasBranches<Self>,
unsafe fn relative_mut<K>(
&'a mut self,
path: impl IntoIterator<Item = K>,
) -> Option<Self>where
K: Into<String>,
Self: Sized + KnowsVisitor<VisitorMut = Self> + UnsafeClone + HasRootMut + HasParentMut + HasPathSegment,
&'a mut Self: HasBranches<Self>,
Gets a relative path mutably.
“self”, “root”, and “super” are reserved path segments.
“self” is the current object, “root” is the root object, and “super” is the parent object.