pub struct HelixInterpreter { /* private fields */ }Implementations§
Source§impl HelixInterpreter
impl HelixInterpreter
pub async fn new() -> Result<Self, HlxError>
pub async fn execute_ast(&mut self, ast: &HelixAst) -> Result<Value, HlxError>
pub fn operator_engine(&self) -> &OperatorEngine
pub fn operator_engine_mut(&mut self) -> &mut OperatorEngine
pub fn set_variable(&mut self, name: String, value: Value)
pub fn get_variable(&self, name: &str) -> Option<&Value>
pub fn list_variables(&self) -> Vec<(String, Value)>
Auto Trait Implementations§
impl Freeze for HelixInterpreter
impl RefUnwindSafe for HelixInterpreter
impl Send for HelixInterpreter
impl Sync for HelixInterpreter
impl Unpin for HelixInterpreter
impl UnwindSafe for HelixInterpreter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more