Struct conch_parser::ast::AtomicTopLevelCommand
[−]
[src]
pub struct AtomicTopLevelCommand<T>(pub Command<AtomicCommandList<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>>);
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.
Trait Implementations
impl<T: Debug> Debug for AtomicTopLevelCommand<T>[src]
impl<T: PartialEq> PartialEq for AtomicTopLevelCommand<T>[src]
fn eq(&self, __arg_0: &AtomicTopLevelCommand<T>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &AtomicTopLevelCommand<T>) -> bool
This method tests for !=.
impl<T: Eq> Eq for AtomicTopLevelCommand<T>[src]
impl<T: Clone> Clone for AtomicTopLevelCommand<T>[src]
fn clone(&self) -> AtomicTopLevelCommand<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<T> Deref for AtomicTopLevelCommand<T>[src]
type Target = Command<AtomicCommandList<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>>
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value
impl<T> DerefMut for AtomicTopLevelCommand<T>[src]
impl<T> PartialEq<Command<AtomicCommandList<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>>> for AtomicTopLevelCommand<T> where
T: PartialEq<T>, [src]
T: PartialEq<T>,
fn eq(
&self,
other: &Command<AtomicCommandList<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>>
) -> bool
&self,
other: &Command<AtomicCommandList<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>>
) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl<T> From<Command<AtomicCommandList<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>>> for AtomicTopLevelCommand<T>[src]
fn from(
inner: Command<AtomicCommandList<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>>
) -> Self
inner: Command<AtomicCommandList<T, AtomicTopLevelWord<T>, AtomicTopLevelCommand<T>>>
) -> Self
Performs the conversion.