pub enum ShellRedirectOperator {
Read,
ReadWrite,
Write,
Append,
WriteAll,
AppendAll,
Clobber,
Other(String),
}Variants§
Implementations§
Source§impl ShellRedirectOperator
impl ShellRedirectOperator
pub fn as_str(&self) -> &str
pub fn reads_input(&self) -> bool
pub fn writes_output(&self) -> bool
Trait Implementations§
Source§impl Clone for ShellRedirectOperator
impl Clone for ShellRedirectOperator
Source§fn clone(&self) -> ShellRedirectOperator
fn clone(&self) -> ShellRedirectOperator
Returns a duplicate of the value. Read more
1.0.0 · 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 ShellRedirectOperator
impl Debug for ShellRedirectOperator
Source§impl PartialEq for ShellRedirectOperator
impl PartialEq for ShellRedirectOperator
impl Eq for ShellRedirectOperator
impl StructuralPartialEq for ShellRedirectOperator
Auto Trait Implementations§
impl Freeze for ShellRedirectOperator
impl RefUnwindSafe for ShellRedirectOperator
impl Send for ShellRedirectOperator
impl Sync for ShellRedirectOperator
impl Unpin for ShellRedirectOperator
impl UnsafeUnpin for ShellRedirectOperator
impl UnwindSafe for ShellRedirectOperator
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