Enum conch_parser::ast::Redirect
[−]
[src]
pub enum Redirect<W> {
Read(Option<u16>, W),
Write(Option<u16>, W),
ReadWrite(Option<u16>, W),
Append(Option<u16>, W),
Clobber(Option<u16>, W),
Heredoc(Option<u16>, W),
DupRead(Option<u16>, W),
DupWrite(Option<u16>, W),
}Represents redirecting a command's file descriptors.
Generic over the representation of a shell word.
Variants
Read(Option<u16>, W)Open a file for reading, e.g. [n]< file.
Write(Option<u16>, W)Open a file for writing after truncating, e.g. [n]> file.
ReadWrite(Option<u16>, W)Open a file for reading and writing, e.g. [n]<> file.
Append(Option<u16>, W)Open a file for writing, appending to the end, e.g. [n]>> file.
Clobber(Option<u16>, W)Open a file for writing, failing if the noclobber shell option is set, e.g. [n]>| file.
Heredoc(Option<u16>, W)Lines contained in the source that should be provided by as input to a file descriptor.
DupRead(Option<u16>, W)Duplicate a file descriptor for reading, e.g. [n]<& [n|-].
DupWrite(Option<u16>, W)Duplicate a file descriptor for writing, e.g. [n]>& [n|-].
Trait Implementations
impl<W: Debug> Debug for Redirect<W>[src]
impl<W: PartialEq> PartialEq for Redirect<W>[src]
fn eq(&self, __arg_0: &Redirect<W>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Redirect<W>) -> bool
This method tests for !=.
impl<W: Eq> Eq for Redirect<W>[src]
impl<W: Clone> Clone for Redirect<W>[src]
fn clone(&self) -> Redirect<W>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more