Struct odra_ir::module::ModuleStruct
source · pub struct ModuleStruct {
pub is_instantiable: bool,
pub item: ItemStruct,
pub events: ModuleEvents,
pub delegated_fields: Vec<DelegatedField>,
}Expand description
Odra module struct.
Wraps up syn::ItemStruct.
Fields§
§is_instantiable: bool§item: ItemStruct§events: ModuleEvents§delegated_fields: Vec<DelegatedField>Implementations§
source§impl ModuleStruct
impl ModuleStruct
pub fn with_config(self, config: ModuleConfiguration) -> Result<Self, Error>
Trait Implementations§
source§impl TryFrom<ItemStruct> for ModuleStruct
impl TryFrom<ItemStruct> for ModuleStruct
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