pub struct ScriptFunction {
pub params: Vec<String>,
pub body_source: String,
pub captured_bindings: Rc<BTreeMap<String, ScriptValue>>,
}Fields§
§params: Vec<String>§body_source: String§captured_bindings: Rc<BTreeMap<String, ScriptValue>>Implementations§
Trait Implementations§
Source§impl Clone for ScriptFunction
impl Clone for ScriptFunction
Source§fn clone(&self) -> ScriptFunction
fn clone(&self) -> ScriptFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScriptFunction
impl Debug for ScriptFunction
Source§impl PartialEq for ScriptFunction
impl PartialEq for ScriptFunction
impl StructuralPartialEq for ScriptFunction
Auto Trait Implementations§
impl Freeze for ScriptFunction
impl !RefUnwindSafe for ScriptFunction
impl !Send for ScriptFunction
impl !Sync for ScriptFunction
impl Unpin for ScriptFunction
impl UnsafeUnpin for ScriptFunction
impl !UnwindSafe for ScriptFunction
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