pub struct ScriptFile { /* private fields */ }Expand description
Script file.
Implementations§
Source§impl ScriptFile
impl ScriptFile
Sourcepub fn instructions(&self) -> &Instructions<'_>
pub fn instructions(&self) -> &Instructions<'_>
Script instructions.
Source§impl ScriptFile
impl ScriptFile
Sourcepub fn parse_files(paths: Vec<PathBuf>) -> Result<Vec<ScriptFile>>
pub fn parse_files(paths: Vec<PathBuf>) -> Result<Vec<ScriptFile>>
Parse a collection of files.
Sourcepub fn run(&self, options: InterpreterOptions) -> Result<()>
pub fn run(&self, options: InterpreterOptions) -> Result<()>
Execute the command and instructions in a pseudo-terminal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScriptFile
impl RefUnwindSafe for ScriptFile
impl Send for ScriptFile
impl Sync for ScriptFile
impl Unpin for ScriptFile
impl UnwindSafe for ScriptFile
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