Struct conch_parser::ast::builder::CoreBuilder [] [src]

pub struct CoreBuilder<T, W, C, F> { /* fields omitted */ }

The actual provided Builder implementation. The various type parameters are used to swap out atomic/non-atomic AST versions.

Methods

impl<T, W, C, F> CoreBuilder<T, W, C, F>
[src]

Constructs a builder.

Trait Implementations

impl<T, W, C, F> Debug for CoreBuilder<T, W, C, F>
[src]

Formats the value using the given formatter.

impl<T, W, C, F> Clone for CoreBuilder<T, W, C, F>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T, W, C, F> Copy for CoreBuilder<T, W, C, F>
[src]

impl<T, W, C, F> Default for CoreBuilder<T, W, C, F>
[src]

Returns the "default value" for a type. Read more

impl<T, W, C, F> Builder for CoreBuilder<T, W, C, F> where
    T: From<String>,
    W: From<ShellWord<T, W, C>>,
    C: From<Command<AndOrList<ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, W, Redirect<W>>>, Box<ShellCompoundCommand<T, W, C>>, F>>>>>,
    F: From<ShellCompoundCommand<T, W, C>>, 
[src]

The type which represents a complete, top-level command.

The type which represents an and/or list of commands.

The type which represents a command that can be used in an and/or command list.

The type which represents a command that can be used in a pipeline.

The type which represents compound commands like if, case, for, etc.

The type which represents shell words, which can be command names or arguments.

The type which represents a file descriptor redirection.

A type for returning custom parse/build errors.

Constructs a Command::Job node with the provided inputs if the command was delimited by an ampersand or the command itself otherwise.

Constructs a Command::List node with the provided inputs.

Constructs a Command::Pipe node with the provided inputs or a Command::Simple node if only a single command with no status inversion is supplied.

Constructs a Command::Simple node with the provided inputs.

Constructs a CompoundCommand::Brace node with the provided inputs.

Constructs a CompoundCommand::Subshell node with the provided inputs.

Constructs a CompoundCommand::Loop node with the provided inputs.

Constructs a CompoundCommand::If node with the provided inputs.

Constructs a CompoundCommand::For node with the provided inputs.

Constructs a CompoundCommand::Case node with the provided inputs.

Converts a CompoundCommand into a PipeableCommand.

Constructs a Command::FunctionDef node with the provided inputs.

Ignored by the builder.

Constructs a ast::Word from the provided input.

Constructs a ast::Redirect from the provided input.