pub struct AtomicTopLevelCommand<T>(pub Command<AtomicCommandList<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>>);
Expand description
A top-level representation of a shell command. Uses Arc
wrappers for function declarations.
This wrapper unifies the provided top-level word representation,
ComplexWord
, and the top-level command representation, Command
,
while allowing them to be generic on their own.
Tuple Fields§
§0: Command<AtomicCommandList<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>>
Trait Implementations§
Source§impl<T: Clone> Clone for AtomicTopLevelCommand<T>
impl<T: Clone> Clone for AtomicTopLevelCommand<T>
Source§fn clone(&self) -> AtomicTopLevelCommand<T>
fn clone(&self) -> AtomicTopLevelCommand<T>
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<T: Debug> Debug for AtomicTopLevelCommand<T>
impl<T: Debug> Debug for AtomicTopLevelCommand<T>
Source§impl<T> Deref for AtomicTopLevelCommand<T>
impl<T> Deref for AtomicTopLevelCommand<T>
Source§type Target = Command<AndOrList<ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, AtomicTopLevelWord<T>, Redirect<AtomicTopLevelWord<T>>>>, Box<CompoundCommand<CompoundCommandKind<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>, Redirect<AtomicTopLevelWord<T>>>>, Arc<CompoundCommand<CompoundCommandKind<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>, Redirect<AtomicTopLevelWord<T>>>>>>>>
type Target = Command<AndOrList<ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, AtomicTopLevelWord<T>, Redirect<AtomicTopLevelWord<T>>>>, Box<CompoundCommand<CompoundCommandKind<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>, Redirect<AtomicTopLevelWord<T>>>>, Arc<CompoundCommand<CompoundCommandKind<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>, Redirect<AtomicTopLevelWord<T>>>>>>>>
The resulting type after dereferencing.
Source§impl<T> DerefMut for AtomicTopLevelCommand<T>
impl<T> DerefMut for AtomicTopLevelCommand<T>
Source§impl<T> From<Command<AndOrList<ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, AtomicTopLevelWord<T>, Redirect<AtomicTopLevelWord<T>>>>, Box<CompoundCommand<CompoundCommandKind<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>, Redirect<AtomicTopLevelWord<T>>>>, Arc<CompoundCommand<CompoundCommandKind<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>, Redirect<AtomicTopLevelWord<T>>>>>>>>> for AtomicTopLevelCommand<T>
impl<T> From<Command<AndOrList<ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, AtomicTopLevelWord<T>, Redirect<AtomicTopLevelWord<T>>>>, Box<CompoundCommand<CompoundCommandKind<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>, Redirect<AtomicTopLevelWord<T>>>>, Arc<CompoundCommand<CompoundCommandKind<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>, Redirect<AtomicTopLevelWord<T>>>>>>>>> for AtomicTopLevelCommand<T>
Source§fn from(
inner: Command<AtomicCommandList<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>>,
) -> Self
fn from( inner: Command<AtomicCommandList<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>>, ) -> Self
Converts to this type from the input type.
Source§impl<T> PartialEq<Command<AndOrList<ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, AtomicTopLevelWord<T>, Redirect<AtomicTopLevelWord<T>>>>, Box<CompoundCommand<CompoundCommandKind<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>, Redirect<AtomicTopLevelWord<T>>>>, Arc<CompoundCommand<CompoundCommandKind<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>, Redirect<AtomicTopLevelWord<T>>>>>>>>> for AtomicTopLevelCommand<T>where
T: PartialEq<T>,
impl<T> PartialEq<Command<AndOrList<ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, AtomicTopLevelWord<T>, Redirect<AtomicTopLevelWord<T>>>>, Box<CompoundCommand<CompoundCommandKind<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>, Redirect<AtomicTopLevelWord<T>>>>, Arc<CompoundCommand<CompoundCommandKind<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>, Redirect<AtomicTopLevelWord<T>>>>>>>>> for AtomicTopLevelCommand<T>where
T: PartialEq<T>,
Source§fn eq(
&self,
other: &Command<AtomicCommandList<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>>,
) -> bool
fn eq( &self, other: &Command<AtomicCommandList<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>>, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<T: PartialEq> PartialEq for AtomicTopLevelCommand<T>
impl<T: PartialEq> PartialEq for AtomicTopLevelCommand<T>
impl<T: Eq> Eq for AtomicTopLevelCommand<T>
impl<T> StructuralPartialEq for AtomicTopLevelCommand<T>
Auto Trait Implementations§
impl<T> Freeze for AtomicTopLevelCommand<T>where
T: Freeze,
impl<T> RefUnwindSafe for AtomicTopLevelCommand<T>where
T: RefUnwindSafe,
impl<T> Send for AtomicTopLevelCommand<T>
impl<T> Sync for AtomicTopLevelCommand<T>
impl<T> Unpin for AtomicTopLevelCommand<T>where
T: Unpin,
impl<T> UnwindSafe for AtomicTopLevelCommand<T>where
T: UnwindSafe + RefUnwindSafe,
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