[−][src]Struct evcxr::EvalContext
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]
subprocess_command: Command
) -> Result<(EvalContext, EvalContextOutputs), Error>
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]
&mut self,
name: String,
config: String
) -> Result<EvalOutputs, Error>
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]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,