Trait MirBuilder

Source
pub trait MirBuilder: Sized {
    // Required methods
    fn new_from_literal(l: Literal) -> Result<Self, Error>;
    fn new_from_class(c: Class) -> Result<Self, Error>;
}
Expand description

Helper trait for building MIRs with some specific symbol types.

Required Methods§

Source

fn new_from_literal(l: Literal) -> Result<Self, Error>

Creates a new MIR from the given Literal.

Source

fn new_from_class(c: Class) -> Result<Self, Error>

Creates a new MIR from the given Class.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> MirBuilder for Mir<char, T>

Source§

impl<T> MirBuilder for Mir<u8, T>