pub struct StdlibCliScript {
pub name: &'static str,
pub source: &'static str,
}Expand description
Embedded .harn script that backs a CLI subcommand. Looked up by
the harn-cli dispatch wedge (see harn#2293 epic and harn#2294 G1)
so subcommands can ship in Harn instead of Rust.
Fields§
§name: &'static strLookup name. For nested scripts this is the path under
stdlib/cli/ without the .harn extension (e.g. "eval/prompt"
for stdlib/cli/eval/prompt.harn).
source: &'static strEmbedded source. Run via the existing harn run codepath by the
dispatch wedge.
Trait Implementations§
Source§impl Clone for StdlibCliScript
impl Clone for StdlibCliScript
Source§fn clone(&self) -> StdlibCliScript
fn clone(&self) -> StdlibCliScript
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 moreSource§impl Debug for StdlibCliScript
impl Debug for StdlibCliScript
Source§impl PartialEq for StdlibCliScript
impl PartialEq for StdlibCliScript
Source§fn eq(&self, other: &StdlibCliScript) -> bool
fn eq(&self, other: &StdlibCliScript) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StdlibCliScript
impl Eq for StdlibCliScript
impl StructuralPartialEq for StdlibCliScript
Auto Trait Implementations§
impl Freeze for StdlibCliScript
impl RefUnwindSafe for StdlibCliScript
impl Send for StdlibCliScript
impl Sync for StdlibCliScript
impl Unpin for StdlibCliScript
impl UnsafeUnpin for StdlibCliScript
impl UnwindSafe for StdlibCliScript
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