pub struct Explanation<'a> {
    expr_humanizer: &'a dyn ExprHumanizer,
    nodes: Vec<ExplanationNode<'a>>,
    finishing: Option<RowSetFinishing>,
    expr_chains: HashMap<*const HirRelationExpr, u64>,
    local_id_chains: HashMap<LocalId, (String, u64)>,
    chain_local_ids: HashMap<u64, (String, LocalId)>,
    chain: u64,
}
Expand description

An Explanation facilitates pretty-printing of a HirRelationExpr.

By default, the fmt::Display implementation renders the expression as described in the module docs. Additional information may be attached to the explanation via the other public methods on the type.

Fields§

§expr_humanizer: &'a dyn ExprHumanizer§nodes: Vec<ExplanationNode<'a>>

One ExplanationNode for each HirRelationExpr in the plan, in left-to-right post-order.

§finishing: Option<RowSetFinishing>

An optional RowSetFinishing to mention at the end.

§expr_chains: HashMap<*const HirRelationExpr, u64>

Records the chain ID that was assigned to each expression.

§local_id_chains: HashMap<LocalId, (String, u64)>

Records the chain ID that was assigned to each let.

§chain_local_ids: HashMap<u64, (String, LocalId)>

Records the local ID that corresponds to a chain ID, if any.

§chain: u64

The ID of the current chain. Incremented while constructing the Explanation.

Implementations§

Creates an explanation for a HirRelationExpr.

Attach type information into the explanation.

Attach a RowSetFinishing to the explanation.

Retrieves the chain ID for the specified expression.

The ExplanationNode for expr must have already been inserted into the explanation.

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. 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
Formats an object with the “alternative” format ({:#}) and returns it.

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Wrap the input message T in a tonic::Request
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
Converts the given value to a String. 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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more