pub struct ScriptTool {
pub meta: ScriptToolMeta,
pub ast: AST,
pub source_path: PathBuf,
}Expand description
A discovered, compiled script tool: its metadata plus the Rhai AST (compiled once) and the path it came from.
Fields§
§meta: ScriptToolMetaTool metadata (name/description/params).
ast: ASTCompiled script AST, evaluated on each call.
source_path: PathBufSource .rhai path (for diagnostics).
Trait Implementations§
Source§impl Clone for ScriptTool
impl Clone for ScriptTool
Source§fn clone(&self) -> ScriptTool
fn clone(&self) -> ScriptTool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ScriptTool
impl !UnwindSafe for ScriptTool
impl Freeze for ScriptTool
impl Send for ScriptTool
impl Sync for ScriptTool
impl Unpin for ScriptTool
impl UnsafeUnpin for ScriptTool
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