pub struct ModuleInner {
pub id: ModuleId,
pub name: String,
pub metadata: ModuleMetadata,
pub imports: Vec<Import>,
pub exports: Vec<Export>,
pub types: Vec<TypeDef>,
pub traits: Vec<Value>,
pub impls: Vec<Value>,
pub constants: Vec<Value>,
pub functions: Vec<FuncDef>,
}Expand description
The inner module definition containing all declarations.
Fields§
§id: ModuleIdModule ID (unique identifier, typed).
name: StringHuman-readable module name.
metadata: ModuleMetadataDescriptive metadata (version, author, description).
imports: Vec<Import>List of use module::item imports.
exports: Vec<Export>List of exports this module publishes.
types: Vec<TypeDef>Type definitions in this module.
traits: Vec<Value>Trait definitions (reserved for future use).
impls: Vec<Value>Trait implementations (reserved for future use).
constants: Vec<Value>Compile-time constants (reserved for future use).
functions: Vec<FuncDef>Function definitions in this module.
Trait Implementations§
Source§impl Clone for ModuleInner
impl Clone for ModuleInner
Source§fn clone(&self) -> ModuleInner
fn clone(&self) -> ModuleInner
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModuleInner
impl Debug for ModuleInner
Source§impl<'de> Deserialize<'de> for ModuleInner
impl<'de> Deserialize<'de> for ModuleInner
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 PartialEq for ModuleInner
impl PartialEq for ModuleInner
Source§impl Serialize for ModuleInner
impl Serialize for ModuleInner
impl StructuralPartialEq for ModuleInner
Auto Trait Implementations§
impl Freeze for ModuleInner
impl RefUnwindSafe for ModuleInner
impl Send for ModuleInner
impl Sync for ModuleInner
impl Unpin for ModuleInner
impl UnsafeUnpin for ModuleInner
impl UnwindSafe for ModuleInner
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