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
sourceimpl CompilerTables
impl CompilerTables
Trait Implementations
sourceimpl Default for CompilerTables
impl Default for CompilerTables
sourcefn default() -> CompilerTables
fn default() -> CompilerTables
Returns the “default value” for a type. Read more
sourceimpl Serialize for CompilerTables
impl Serialize for CompilerTables
Auto Trait Implementations
impl RefUnwindSafe for CompilerTables
impl Send for CompilerTables
impl Sync for CompilerTables
impl Unpin for CompilerTables
impl UnwindSafe for CompilerTables
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
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
impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
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