pub enum RedirectOrCmdWord<R, W> {
Redirect(R),
CmdWord(W),
}Expand description
Represents a redirect or a command word.
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.
CmdWord(W)
A shell word, either command name or argument.
Trait Implementations§
Source§impl<R: Clone, W: Clone> Clone for RedirectOrCmdWord<R, W>
impl<R: Clone, W: Clone> Clone for RedirectOrCmdWord<R, W>
Source§fn clone(&self) -> RedirectOrCmdWord<R, W>
fn clone(&self) -> RedirectOrCmdWord<R, 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, W> From<RedirectOrCmdWord<R, W>> for RedirectOrCmdWord<R, W>
impl<R, W> From<RedirectOrCmdWord<R, W>> for RedirectOrCmdWord<R, W>
Source§fn from(from: RedirectOrCmdWord<R, W>) -> Self
fn from(from: RedirectOrCmdWord<R, W>) -> Self
Converts to this type from the input type.
impl<R: Eq, W: Eq> Eq for RedirectOrCmdWord<R, W>
impl<R, W> StructuralPartialEq for RedirectOrCmdWord<R, W>
Auto Trait Implementations§
impl<R, W> Freeze for RedirectOrCmdWord<R, W>
impl<R, W> RefUnwindSafe for RedirectOrCmdWord<R, W>where
R: RefUnwindSafe,
W: RefUnwindSafe,
impl<R, W> Send for RedirectOrCmdWord<R, W>
impl<R, W> Sync for RedirectOrCmdWord<R, W>
impl<R, W> Unpin for RedirectOrCmdWord<R, W>
impl<R, W> UnwindSafe for RedirectOrCmdWord<R, W>where
R: UnwindSafe,
W: UnwindSafe,
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