[][src]Struct evcxr::EvalContext

pub struct EvalContext {
    pub should_pre_warm: bool,
    // some fields omitted
}

Fields

should_pre_warm: bool

Methods

impl EvalContext[src]

pub fn new() -> Result<(EvalContext, EvalContextOutputs), Error>[src]

pub fn with_subprocess_command(
    subprocess_command: Command
) -> Result<(EvalContext, EvalContextOutputs), Error>
[src]

pub fn eval(&mut self, code: &str) -> Result<EvalOutputs, Error>[src]

Evaluates the supplied Rust code.

pub fn opt_level(&self) -> &str[src]

pub fn set_opt_level(&mut self, level: &str) -> Result<(), Error>[src]

pub fn add_extern_crate(
    &mut self,
    name: String,
    config: String
) -> Result<EvalOutputs, Error>
[src]

pub fn debug_mode(&self) -> bool[src]

pub fn set_debug_mode(&mut self, debug_mode: bool)[src]

pub fn variables_and_types(&self) -> impl Iterator<Item = (&str, &str)>[src]

pub fn defined_item_names(&self) -> impl Iterator<Item = &str>[src]

pub fn clear(&mut self) -> Result<(), Error>[src]

Trait Implementations

impl Drop for EvalContext[src]

Auto Trait Implementations

impl Send for EvalContext

impl !Sync for EvalContext

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]