Struct odra_ir::module::ModuleStruct
source · pub struct ModuleStruct {
pub is_instantiable: bool,
pub item: ItemStruct,
pub events: ModuleEvents,
pub skip_instance: bool,
}Expand description
Odra module struct.
Wraps up syn::ItemStruct.
Fields§
§is_instantiable: bool§item: ItemStruct§events: ModuleEvents§skip_instance: boolImplementations§
source§impl ModuleStruct
impl ModuleStruct
pub fn with_config(self, config: ModuleConfiguration) -> Result<Self, Error>
Trait Implementations§
source§impl From<ItemStruct> for ModuleStruct
impl From<ItemStruct> for ModuleStruct
source§fn from(item: ItemStruct) -> Self
fn from(item: ItemStruct) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ModuleStruct
impl !Send for ModuleStruct
impl !Sync for ModuleStruct
impl Unpin for ModuleStruct
impl UnwindSafe for ModuleStruct
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