pub enum RedirectOrVarAssig<R, V, W> {
Redirect(R),
VarAssig(V, Option<W>),
}Expand description
Represents a redirect or a defined environment variable at the start of a command.
Because the order in which redirects are defined may be significant for execution (i.e. due to side effects), we will process them in the order they were defined.
Variants§
Redirect(R)
A redirect defined before a command name.
VarAssig(V, Option<W>)
A variable assignment, e.g. foo=[bar].
Trait Implementations§
Source§impl<R: Clone, V: Clone, W: Clone> Clone for RedirectOrVarAssig<R, V, W>
impl<R: Clone, V: Clone, W: Clone> Clone for RedirectOrVarAssig<R, V, W>
Source§fn clone(&self) -> RedirectOrVarAssig<R, V, W>
fn clone(&self) -> RedirectOrVarAssig<R, V, W>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R, V, W> From<RedirectOrEnvVar<R, V, W>> for RedirectOrVarAssig<R, V, W>
impl<R, V, W> From<RedirectOrEnvVar<R, V, W>> for RedirectOrVarAssig<R, V, W>
Source§fn from(from: RedirectOrEnvVar<R, V, W>) -> Self
fn from(from: RedirectOrEnvVar<R, V, W>) -> Self
Converts to this type from the input type.
impl<R: Eq, V: Eq, W: Eq> Eq for RedirectOrVarAssig<R, V, W>
impl<R, V, W> StructuralPartialEq for RedirectOrVarAssig<R, V, W>
Auto Trait Implementations§
impl<R, V, W> Freeze for RedirectOrVarAssig<R, V, W>
impl<R, V, W> RefUnwindSafe for RedirectOrVarAssig<R, V, W>
impl<R, V, W> Send for RedirectOrVarAssig<R, V, W>
impl<R, V, W> Sync for RedirectOrVarAssig<R, V, W>
impl<R, V, W> Unpin for RedirectOrVarAssig<R, V, W>
impl<R, V, W> UnwindSafe for RedirectOrVarAssig<R, V, W>
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