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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more