Struct conch_runtime::spawn::builtin::Shift [−][src]
pub struct Shift<I> { /* fields omitted */ }
Represents a shift
builtin command.
The shift
builtin command will shift all shell or function positional
arguments up by the specified amount. For example, shifting by 2 will
result in $1
holding the previous value of $3
, $2
holding the
previous value of $4
, and so on.
Trait Implementations
impl<I: Debug> Debug for Shift<I>
[src]
impl<I: Debug> Debug for Shift<I>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<I: PartialEq> PartialEq for Shift<I>
[src]
impl<I: PartialEq> PartialEq for Shift<I>
fn eq(&self, other: &Shift<I>) -> bool
[src]
fn eq(&self, other: &Shift<I>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Shift<I>) -> bool
[src]
fn ne(&self, other: &Shift<I>) -> bool
This method tests for !=
.
impl<I: Eq> Eq for Shift<I>
[src]
impl<I: Eq> Eq for Shift<I>
impl<I: Clone> Clone for Shift<I>
[src]
impl<I: Clone> Clone for Shift<I>
fn clone(&self) -> Shift<I>
[src]
fn clone(&self) -> Shift<I>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<T, I, E: ?Sized> Spawn<E> for Shift<I> where
T: StringWrapper,
I: Iterator<Item = T>,
E: ArgumentsEnvironment + ShiftArgumentsEnvironment + ReportErrorEnvironment,
[src]
impl<T, I, E: ?Sized> Spawn<E> for Shift<I> where
T: StringWrapper,
I: Iterator<Item = T>,
E: ArgumentsEnvironment + ShiftArgumentsEnvironment + ReportErrorEnvironment,
type EnvFuture = SpawnedShift<I>
The future that represents spawning the command. Read more
type Future = ExitStatus
The future that represents the exit status of a fully bootstrapped command, which no longer requires an environment to be driven to completion. Read more
type Error = Void
The type of error that a future will resolve with if it fails in a normal fashion. Read more
fn spawn(self, _env: &E) -> Self::EnvFuture
[src]
fn spawn(self, _env: &E) -> Self::EnvFuture
Spawn the command as a future. Read more