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 Freeze for ModuleStruct
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more