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
impl Copy for RedirOp
impl Eq for RedirOp
impl StructuralEq for RedirOp
impl StructuralPartialEq for RedirOp
Auto Trait Implementations
impl RefUnwindSafe for RedirOp
impl Send for RedirOp
impl Sync for RedirOp
impl Unpin for RedirOp
impl UnwindSafe for RedirOp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more