pub struct Redirection {
pub fd: Option<u32>,
pub op: RedirectionOp,
pub target: Word,
pub here_doc_body: Option<HereDocBody>,
pub span: Span,
}Expand description
A redirection (>, <, >>, <<, etc.).
Fields§
§fd: Option<u32>Explicit file descriptor number (e.g., 2> has fd = Some(2)).
op: RedirectionOpThe redirection operator.
target: WordThe target word (filename, fd number, or here-string content).
here_doc_body: Option<HereDocBody>For here-doc redirections, the body content (filled in after the command line).
span: SpanSource span.
Trait Implementations§
Source§impl Clone for Redirection
impl Clone for Redirection
Source§fn clone(&self) -> Redirection
fn clone(&self) -> Redirection
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 Redirection
impl Debug for Redirection
Source§impl PartialEq for Redirection
impl PartialEq for Redirection
Source§fn eq(&self, other: &Redirection) -> bool
fn eq(&self, other: &Redirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Redirection
Auto Trait Implementations§
impl Freeze for Redirection
impl RefUnwindSafe for Redirection
impl Send for Redirection
impl Sync for Redirection
impl Unpin for Redirection
impl UnsafeUnpin for Redirection
impl UnwindSafe for Redirection
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