Struct conch_parser::ast::TopLevelCommand [] [src]

pub struct TopLevelCommand<T>(pub Command<CommandList<T, TopLevelWord<T>, TopLevelCommand<T>>>);

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.

Trait Implementations

impl<T: Debug> Debug for TopLevelCommand<T>
[src]

Formats the value using the given formatter.

impl<T: PartialEq> PartialEq for TopLevelCommand<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for TopLevelCommand<T>
[src]

impl<T: Clone> Clone for TopLevelCommand<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Deref for TopLevelCommand<T>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<T> DerefMut for TopLevelCommand<T>
[src]

The method called to mutably dereference a value

impl<T> PartialEq<Command<CommandList<T, TopLevelWord<T>, TopLevelCommand<T>>>> for TopLevelCommand<T> where
    T: PartialEq<T>, 
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> From<Command<CommandList<T, TopLevelWord<T>, TopLevelCommand<T>>>> for TopLevelCommand<T>
[src]

Performs the conversion.