pub struct TopLevelCommand<T>(pub Command<CommandList<T, TopLevelWord<T>, TopLevelCommand<T>>>);
Expand description
A top-level representation of a shell command. Uses Rc
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<CommandList<T, TopLevelWord<T>, TopLevelCommand<T>>>
Trait Implementations§
Source§impl<T: Clone> Clone for TopLevelCommand<T>
impl<T: Clone> Clone for TopLevelCommand<T>
Source§fn clone(&self) -> TopLevelCommand<T>
fn clone(&self) -> TopLevelCommand<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 TopLevelCommand<T>
impl<T: Debug> Debug for TopLevelCommand<T>
Source§impl<T> Deref for TopLevelCommand<T>
impl<T> Deref for TopLevelCommand<T>
Source§type Target = Command<AndOrList<ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, TopLevelWord<T>, Redirect<TopLevelWord<T>>>>, Box<CompoundCommand<CompoundCommandKind<T, TopLevelWord<T>, TopLevelCommand<T>>, Redirect<TopLevelWord<T>>>>, Rc<CompoundCommand<CompoundCommandKind<T, TopLevelWord<T>, TopLevelCommand<T>>, Redirect<TopLevelWord<T>>>>>>>>
type Target = Command<AndOrList<ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, TopLevelWord<T>, Redirect<TopLevelWord<T>>>>, Box<CompoundCommand<CompoundCommandKind<T, TopLevelWord<T>, TopLevelCommand<T>>, Redirect<TopLevelWord<T>>>>, Rc<CompoundCommand<CompoundCommandKind<T, TopLevelWord<T>, TopLevelCommand<T>>, Redirect<TopLevelWord<T>>>>>>>>
The resulting type after dereferencing.
Source§impl<T> DerefMut for TopLevelCommand<T>
impl<T> DerefMut for TopLevelCommand<T>
Source§impl<T> From<Command<AndOrList<ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, TopLevelWord<T>, Redirect<TopLevelWord<T>>>>, Box<CompoundCommand<CompoundCommandKind<T, TopLevelWord<T>, TopLevelCommand<T>>, Redirect<TopLevelWord<T>>>>, Rc<CompoundCommand<CompoundCommandKind<T, TopLevelWord<T>, TopLevelCommand<T>>, Redirect<TopLevelWord<T>>>>>>>>> for TopLevelCommand<T>
impl<T> From<Command<AndOrList<ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, TopLevelWord<T>, Redirect<TopLevelWord<T>>>>, Box<CompoundCommand<CompoundCommandKind<T, TopLevelWord<T>, TopLevelCommand<T>>, Redirect<TopLevelWord<T>>>>, Rc<CompoundCommand<CompoundCommandKind<T, TopLevelWord<T>, TopLevelCommand<T>>, Redirect<TopLevelWord<T>>>>>>>>> for TopLevelCommand<T>
Source§fn from(
inner: Command<CommandList<T, TopLevelWord<T>, TopLevelCommand<T>>>,
) -> Self
fn from( inner: Command<CommandList<T, TopLevelWord<T>, TopLevelCommand<T>>>, ) -> Self
Converts to this type from the input type.
Source§impl<T> PartialEq<Command<AndOrList<ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, TopLevelWord<T>, Redirect<TopLevelWord<T>>>>, Box<CompoundCommand<CompoundCommandKind<T, TopLevelWord<T>, TopLevelCommand<T>>, Redirect<TopLevelWord<T>>>>, Rc<CompoundCommand<CompoundCommandKind<T, TopLevelWord<T>, TopLevelCommand<T>>, Redirect<TopLevelWord<T>>>>>>>>> for TopLevelCommand<T>where
T: PartialEq<T>,
impl<T> PartialEq<Command<AndOrList<ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, TopLevelWord<T>, Redirect<TopLevelWord<T>>>>, Box<CompoundCommand<CompoundCommandKind<T, TopLevelWord<T>, TopLevelCommand<T>>, Redirect<TopLevelWord<T>>>>, Rc<CompoundCommand<CompoundCommandKind<T, TopLevelWord<T>, TopLevelCommand<T>>, Redirect<TopLevelWord<T>>>>>>>>> for TopLevelCommand<T>where
T: PartialEq<T>,
Source§fn eq(
&self,
other: &Command<CommandList<T, TopLevelWord<T>, TopLevelCommand<T>>>,
) -> bool
fn eq( &self, other: &Command<CommandList<T, TopLevelWord<T>, TopLevelCommand<T>>>, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<T: PartialEq> PartialEq for TopLevelCommand<T>
impl<T: PartialEq> PartialEq for TopLevelCommand<T>
impl<T: Eq> Eq for TopLevelCommand<T>
impl<T> StructuralPartialEq for TopLevelCommand<T>
Auto Trait Implementations§
impl<T> Freeze for TopLevelCommand<T>where
T: Freeze,
impl<T> RefUnwindSafe for TopLevelCommand<T>where
T: RefUnwindSafe,
impl<T> !Send for TopLevelCommand<T>
impl<T> !Sync for TopLevelCommand<T>
impl<T> Unpin for TopLevelCommand<T>where
T: Unpin,
impl<T> UnwindSafe for TopLevelCommand<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