Struct nu_engine::shell::value_shell::ValueShell
source · [−]pub struct ValueShell { /* private fields */ }Implementations
sourceimpl ValueShell
impl ValueShell
Trait Implementations
sourceimpl Clone for ValueShell
impl Clone for ValueShell
sourcefn clone(&self) -> ValueShell
fn clone(&self) -> ValueShell
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ValueShell
impl Debug for ValueShell
sourceimpl Shell for ValueShell
impl Shell for ValueShell
fn name(&self) -> String
fn homedir(&self) -> Option<PathBuf>
fn ls(
&self,
_: LsArgs,
name_tag: Tag,
_ctrl_c: Arc<AtomicBool>
) -> Result<ActionStream, ShellError>
fn cd(&self, args: CdArgs, name: Tag) -> Result<ActionStream, ShellError>
fn cp(
&self,
_args: CopyArgs,
name: Tag,
_path: &str
) -> Result<ActionStream, ShellError>
fn mv(
&self,
_args: MvArgs,
name: Tag,
_path: &str
) -> Result<ActionStream, ShellError>
fn mkdir(
&self,
_args: MkdirArgs,
name: Tag,
_path: &str
) -> Result<OutputStream, ShellError>
fn rm(
&self,
_args: RemoveArgs,
name: Tag,
_path: &str
) -> Result<ActionStream, ShellError>
fn path(&self) -> String
fn pwd(&self, args: CommandArgs) -> Result<ActionStream, ShellError>
fn set_path(&mut self, path: String)
fn open(
&self,
_path: &Path,
_name: Span,
_with_encoding: Option<&'static Encoding>
) -> Result<Box<dyn Iterator<Item = Result<StringOrBinary, ShellError>> + Send + Sync>, ShellError>
fn save(
&mut self,
_path: &Path,
_contents: &[u8],
_name: Span,
_append: bool
) -> Result<OutputStream, ShellError>
fn is_interactive(&self) -> bool
Auto Trait Implementations
impl RefUnwindSafe for ValueShell
impl Send for ValueShell
impl Sync for ValueShell
impl Unpin for ValueShell
impl UnwindSafe for ValueShell
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> SpannedItem for T
impl<T> SpannedItem for T
sourceimpl<T> TaggedItem for T
impl<T> TaggedItem for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more