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§
source§impl PartialEq for RedirOp
impl PartialEq for RedirOp
source§impl TryFrom<Operator> for RedirOp
impl TryFrom<Operator> for RedirOp
§type Error = TryFromOperatorError
type Error = TryFromOperatorError
The type returned in the event of a conversion error.
impl Copy for RedirOp
impl Eq for RedirOp
impl StructuralPartialEq for RedirOp
Auto Trait Implementations§
impl Freeze for RedirOp
impl RefUnwindSafe for RedirOp
impl Send for RedirOp
impl Sync for RedirOp
impl Unpin for RedirOp
impl UnwindSafe for RedirOp
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