#[non_exhaustive]pub enum RedirectionOp {
Input,
Output,
Append,
Clobber,
AppendBoth,
ReadWrite,
HereDoc,
HereDocStrip,
HereString,
DupOutput,
DupInput,
}Expand description
Redirection operator.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Input
<
Output
>
Append
>>
Clobber
>|
AppendBoth
&>>
ReadWrite
<>
HereDoc
<< (here-doc)
HereDocStrip
<<- (here-doc with tab stripping)
HereString
<<< (here-string)
DupOutput
>&N or N>&M (duplicate output fd)
DupInput
<&N or N<&M (duplicate input fd)
Trait Implementations§
Source§impl Clone for RedirectionOp
impl Clone for RedirectionOp
Source§fn clone(&self) -> RedirectionOp
fn clone(&self) -> RedirectionOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RedirectionOp
impl Debug for RedirectionOp
Source§impl PartialEq for RedirectionOp
impl PartialEq for RedirectionOp
Source§fn eq(&self, other: &RedirectionOp) -> bool
fn eq(&self, other: &RedirectionOp) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RedirectionOp
impl Eq for RedirectionOp
impl StructuralPartialEq for RedirectionOp
Auto Trait Implementations§
impl Freeze for RedirectionOp
impl RefUnwindSafe for RedirectionOp
impl Send for RedirectionOp
impl Sync for RedirectionOp
impl Unpin for RedirectionOp
impl UnsafeUnpin for RedirectionOp
impl UnwindSafe for RedirectionOp
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