pub struct IoRedirect { /* private fields */ }Expand description
A single I/O redirection.
Implementations§
Source§impl IoRedirect
impl IoRedirect
pub fn new( io_number: Option<u32>, op: IoRedirectOp, name: Word, here_document: Vec<Word>, here_document_expand: bool, ) -> Self
pub fn with_range( io_number: Option<u32>, op: IoRedirectOp, name: Word, here_document: Vec<Word>, here_document_expand: bool, range: Range, ) -> Self
pub fn io_number(&self) -> Option<u32>
pub fn op(&self) -> IoRedirectOp
pub fn name(&self) -> &Word
pub fn name_mut(&mut self) -> &mut Word
pub fn here_document(&self) -> &[Word]
pub fn here_document_mut(&mut self) -> &mut Vec<Word>
pub fn here_document_expand(&self) -> bool
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 (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 IoRedirect
impl Debug for IoRedirect
Source§impl<'de> Deserialize<'de> for IoRedirect
impl<'de> Deserialize<'de> for IoRedirect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IoRedirect
impl PartialEq for IoRedirect
Source§fn eq(&self, other: &IoRedirect) -> bool
fn eq(&self, other: &IoRedirect) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IoRedirect
impl Serialize for IoRedirect
impl Eq for IoRedirect
impl StructuralPartialEq 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 UnsafeUnpin 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