pub struct Script { /* private fields */ }Implementations§
Source§impl Script
impl Script
pub fn try_build( engine: Arc<Engine>, script: &Value, ) -> Result<Self, ScriptError>
pub fn evaluate_from_scope( &self, scope: &mut Scope<'_>, ) -> Result<Value, ScriptError>
pub fn evaluate( &self, context: &HashMap<String, Value>, ) -> Result<Value, ScriptError>
pub fn evaluate_without_context(&self) -> Result<Value, ScriptError>
pub fn evaluate_variable( &self, context: &HashMap<String, Value>, ) -> Result<Variable, ScriptError>
pub fn compiled_sources(&self) -> HashMap<usize, String>
pub fn compiled_template(&self) -> Value
pub fn compiled_value(&self) -> Value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Script
impl !RefUnwindSafe for Script
impl Send for Script
impl Sync for Script
impl Unpin for Script
impl !UnwindSafe for Script
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