Struct evcxr::CommandContext [−][src]
pub struct CommandContext { /* fields omitted */ }
Expand description
A higher level interface to EvalContext. A bit closer to a Repl. Provides commands (start with ‘:’) that alter context state or print information.
Implementations
pub fn execute_with_callbacks(
&mut self,
to_run: &str,
callbacks: &mut EvalCallbacks<'_>
) -> Result<EvalOutputs, Error>
Returns completions within src
at position
, which should be a byte offset. Note, this
function requires &mut self because it mutates internal state in order to determine
completions. It also assumes exclusive access to those resources. However there should be
any visible side effects.
Auto Trait Implementations
impl !RefUnwindSafe for CommandContext
impl Send for CommandContext
impl !Sync for CommandContext
impl Unpin for CommandContext
impl !UnwindSafe for CommandContext
Blanket Implementations
Mutably borrows from an owned value. Read more
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
impl<T> Any for T where
T: Any,