Enum yash_syntax::syntax::RedirOp
source · [−]pub enum RedirOp {
FileIn,
FileInOut,
FileOut,
FileAppend,
FileClobber,
FdIn,
FdOut,
Pipe,
String,
}
Expand description
Redirection operators.
This enum defines the redirection operator types except here-document and process redirection.
Variants
FileIn
<
(open a file for input)
FileInOut
<>
(open a file for input and output)
FileOut
>
(open a file for output; truncate or fail if existing)
FileAppend
>>
(open a file for output; append if existing)
FileClobber
>|
(open a file for output; always truncate if existing)
FdIn
<&
(copy or close a file descriptor for input)
FdOut
>&
(copy or close a file descriptor for output)
Pipe
>>|
(open a pipe, one end for input and the other output)
String
<<<
(here-string)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RedirOp
impl UnwindSafe for RedirOp
Blanket Implementations
Mutably borrows from an owned value. Read more