pub struct RustGenerator { /* private fields */ }Expand description
Rust code generator for Anchor programs
Implementations§
Source§impl RustGenerator
impl RustGenerator
pub fn new() -> Self
Sourcepub fn generate(
&mut self,
programs: &[SolanaProgram],
) -> Result<GeneratedProject, CodegenError>
pub fn generate( &mut self, programs: &[SolanaProgram], ) -> Result<GeneratedProject, CodegenError>
Generate a complete Anchor project from Solana IR
Trait Implementations§
Source§impl Default for RustGenerator
impl Default for RustGenerator
Source§fn default() -> RustGenerator
fn default() -> RustGenerator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RustGenerator
impl RefUnwindSafe for RustGenerator
impl Send for RustGenerator
impl Sync for RustGenerator
impl Unpin for RustGenerator
impl UnwindSafe for RustGenerator
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