pub struct CompilerTables {
    pub connections: Vec<Connection>,
    pub sources: HashMap<Route, (Source, usize)>,
    pub destination_routes: HashMap<Route, (usize, usize, usize)>,
    pub collapsed_connections: Vec<Connection>,
    pub functions: Vec<FunctionDefinition>,
    pub libs: HashSet<Url>,
    pub context_functions: HashSet<Url>,
    pub source_files: Vec<String>,
}
Expand description

CompilerTables are built from the flattened and connected flow model in memory and are used to generate the flow’s manifest ready to be executed.

Fields

connections: Vec<Connection>

The set of connections between functions in the compiled flow

sources: HashMap<Route, (Source, usize)>

HashMap of sources of values and what route they are connected to

destination_routes: HashMap<Route, (usize, usize, usize)>

HashMap from “route of the output of a function” –> (output name, source_function_id)

collapsed_connections: Vec<Connection>

HashMap from “route of the input of a function” –> (destination_function_id, input number, flow_id)

functions: Vec<FunctionDefinition>

The set of functions left in a flow after it has been flattened, connected and optimized

libs: HashSet<Url>

The set of libraries used by a flow, from their Urls

context_functions: HashSet<Url>

The set of context functions used by a flow, from their Urls

source_files: Vec<String>

The list of source files that were used in the flow definition

Implementations

Create a new set of CompilerTables for use in compiling a flow

Trait Implementations

Returns the “default value” for a type. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.