pub struct ModuleInfo {
pub prefix: String,
pub type_defs: Vec<TypeDef>,
pub fn_defs: Vec<FnDef>,
}Expand description
Information about a dependent module loaded for codegen.
Fields§
§prefix: StringQualified module path, e.g. “Examples.Fibonacci”.
type_defs: Vec<TypeDef>Type definitions from the module.
fn_defs: Vec<FnDef>Function definitions from the module (excluding main).
Auto Trait Implementations§
impl Freeze for ModuleInfo
impl RefUnwindSafe for ModuleInfo
impl !Send for ModuleInfo
impl !Sync for ModuleInfo
impl Unpin for ModuleInfo
impl UnsafeUnpin for ModuleInfo
impl UnwindSafe for ModuleInfo
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