pub struct ModuleParts {
pub ident: Ident,
pub docs: TokenStream,
pub body: TokenStream,
}Expand description
A Move module’s oxidized datatypes, split into placeable pieces.
Lets the body be merged into an existing mod of the same name (e.g. one also holding PTB
bindings) rather than forced into its own pub mod. Produced by ModuleGen::to_parts;
ModuleGen::to_rust wraps it back up.
Fields§
§ident: IdentThe module identifier.
docs: TokenStreamThe module’s doc attributes.
body: TokenStreamWhat goes inside pub mod <ident>: the address/u256/vector type aliases followed
by the generated struct/enum datatypes.
Auto Trait Implementations§
impl !Send for ModuleParts
impl !Sync for ModuleParts
impl Freeze for ModuleParts
impl RefUnwindSafe for ModuleParts
impl Unpin for ModuleParts
impl UnsafeUnpin for ModuleParts
impl UnwindSafe for ModuleParts
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