Struct mycroft::ir::Query [] [src]

pub struct Query {
    pub name: String,
    pub ast: Query,
    pub predicates: Vec<String>,
    pub vars: Vec<String>,
    pub matches: Vec<Vec<Option<MatchVal>>>,
    pub types: BTreeMap<String, String>,
    pub circumscribed: Vec<bool>,
    pub gao: Vec<Vec<usize>>,
}

IR Query Representation All QueryField values are relative to the ordering given by the GAO

Fields

Predicate name

AST of the predicate, for use in error reporting

List of predicates we are joining across

Map between variable numbers and names

Indexed by query, then field, what restrictions are on that coordinate

Map between variables and their types

Whether a given clause is being circumscribed

For each predicate, how it should be projected in the ordering

Trait Implementations

impl Debug for Query
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Query
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Query
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Query
[src]

Auto Trait Implementations

impl Send for Query

impl Sync for Query