[][src]Trait libslide::emit::Emit

pub trait Emit where
    Self: Display + Debug
{ fn emit_pretty(&self, config: EmitConfig) -> String;
fn emit_s_expression(&self, config: EmitConfig) -> String;
fn emit_latex(&self, config: EmitConfig) -> String; fn emit(&self, form: EmitFormat, config: EmitConfig) -> String { ... }
fn emit_debug(&self, _config: EmitConfig) -> String { ... }
fn emit_wrapped_latex(&self, config: EmitConfig) -> String { ... } }

Implements the emission of a type in an EmitFormat.

Required methods

fn emit_pretty(&self, config: EmitConfig) -> String

Emit self with the pretty emit format

fn emit_s_expression(&self, config: EmitConfig) -> String

Emit self with the s_expression emit format

fn emit_latex(&self, config: EmitConfig) -> String

Emit self with the LaTeX emit format

Loading content...

Provided methods

fn emit(&self, form: EmitFormat, config: EmitConfig) -> String

Emit self with the given EmitFormat.

NB: This is a multiplexer of the corresponding emit_ methods present on Emit, except for EmitFormat::Latex, which is emitted via emit_wrapped_latex.

fn emit_debug(&self, _config: EmitConfig) -> String

Emit self with the debug emit format

fn emit_wrapped_latex(&self, config: EmitConfig) -> String

Same as emit_latex, but wraps the latex code in inline math mode.

Loading content...

Implementors

impl Emit for Expr[src]

impl Emit for ExprPat[src]

impl Emit for StmtKind[src]

impl Emit for BinaryOperator[src]

impl Emit for UnaryOperator[src]

impl Emit for AssignmentOp[src]

impl Emit for RcExprPat[src]

impl Emit for Assignment[src]

impl Emit for BinaryExpr<RcExprPat>[src]

impl Emit for BinaryExpr<RcExpr>[src]

impl Emit for RcExpr[src]

impl Emit for Stmt[src]

impl Emit for StmtList[src]

impl Emit for UnaryExpr<RcExprPat>[src]

impl Emit for UnaryExpr<RcExpr>[src]

Loading content...