pub enum IoRedirect {
File(Option<IoFd>, IoFileRedirectKind, IoFileRedirectTarget),
HereDocument(Option<IoFd>, IoHereDocument),
HereString(Option<IoFd>, Word),
OutputAndError(Word, bool),
}Expand description
An I/O redirection.
Variants§
File(Option<IoFd>, IoFileRedirectKind, IoFileRedirectTarget)
Redirection to a file.
HereDocument(Option<IoFd>, IoHereDocument)
Redirection from a here-document.
HereString(Option<IoFd>, 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
Source§impl Display for IoRedirect
impl Display for IoRedirect
Source§impl SourceLocation for IoRedirect
impl SourceLocation for IoRedirect
Source§fn location(&self) -> Option<TokenLocation>
fn location(&self) -> Option<TokenLocation>
The location of the syntax item, when known
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