pub enum IoRedirect {
File(Option<u32>, IoFileRedirectKind, IoFileRedirectTarget),
HereDocument(Option<u32>, IoHereDocument),
HereString(Option<u32>, Word),
OutputAndError(Word, bool),
}
Expand description
An I/O redirection.
Variants§
File(Option<u32>, IoFileRedirectKind, IoFileRedirectTarget)
Redirection to a file.
HereDocument(Option<u32>, IoHereDocument)
Redirection from a here-document.
HereString(Option<u32>, Word)
Redirection from a here-string.
OutputAndError(Word, bool)
Redirection of both standard output and standard error (with optional append).
Trait Implementations§
Source§impl Clone for IoRedirect
impl Clone for IoRedirect
Source§fn clone(&self) -> IoRedirect
fn clone(&self) -> IoRedirect
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 IoRedirect
impl Debug for IoRedirect
Auto Trait Implementations§
impl Freeze for IoRedirect
impl RefUnwindSafe for IoRedirect
impl Send for IoRedirect
impl Sync for IoRedirect
impl Unpin for IoRedirect
impl UnwindSafe for IoRedirect
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