Enum conch_runtime::eval::RedirectOrCmdWord [−][src]
pub enum RedirectOrCmdWord<R, W> { Redirect(R), CmdWord(W), }
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
impl<R: Debug, W: Debug> Debug for RedirectOrCmdWord<R, W>
[src]
impl<R: Debug, W: Debug> Debug for RedirectOrCmdWord<R, W>
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<R: PartialEq, W: PartialEq> PartialEq for RedirectOrCmdWord<R, W>
[src]
impl<R: PartialEq, W: PartialEq> PartialEq for RedirectOrCmdWord<R, W>
fn eq(&self, other: &RedirectOrCmdWord<R, W>) -> bool
[src]
fn eq(&self, other: &RedirectOrCmdWord<R, W>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RedirectOrCmdWord<R, W>) -> bool
[src]
fn ne(&self, other: &RedirectOrCmdWord<R, W>) -> bool
This method tests for !=
.
impl<R: Eq, W: Eq> Eq for RedirectOrCmdWord<R, W>
[src]
impl<R: Eq, W: Eq> Eq for RedirectOrCmdWord<R, W>
impl<R: Clone, W: Clone> Clone for RedirectOrCmdWord<R, W>
[src]
impl<R: Clone, W: Clone> Clone for RedirectOrCmdWord<R, W>
fn clone(&self) -> RedirectOrCmdWord<R, W>
[src]
fn clone(&self) -> RedirectOrCmdWord<R, W>
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<R, W> From<RedirectOrCmdWord<R, W>> for RedirectOrCmdWord<R, W>
[src]
impl<R, W> From<RedirectOrCmdWord<R, W>> for RedirectOrCmdWord<R, W>
fn from(from: RedirectOrCmdWord<R, W>) -> Self
[src]
fn from(from: RedirectOrCmdWord<R, W>) -> Self
Performs the conversion.
Auto Trait Implementations
impl<R, W> Send for RedirectOrCmdWord<R, W> where
R: Send,
W: Send,
impl<R, W> Send for RedirectOrCmdWord<R, W> where
R: Send,
W: Send,
impl<R, W> Sync for RedirectOrCmdWord<R, W> where
R: Sync,
W: Sync,
impl<R, W> Sync for RedirectOrCmdWord<R, W> where
R: Sync,
W: Sync,