Skip to main content

GenRust

Trait GenRust 

Source
pub trait GenRust {
    // Required method
    fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen);
}

Required Methods§

Source

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl GenRust for Attribute

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl GenRust for Block

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl GenRust for Expression

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl GenRust for FunctionDecl

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl GenRust for ImplDecl

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl GenRust for Literal

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl GenRust for ParamList

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl GenRust for Pattern

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl GenRust for Postfix

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl GenRust for Prefix

Source§

fn gen_rust(&self, _ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl GenRust for Statement

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl GenRust for StatementBody

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl GenRust for TopLevel

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl GenRust for TopLevelKind

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl GenRust for VarDecl

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl GenRust for Vec<Prefix>

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Source§

impl<T: GenRust> GenRust for Spanned<T>

Source§

fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen)

Implementors§