pub struct ViewExplanation<'a> {
    expr_humanizer: &'a dyn ExprHumanizer,
    nodes: Vec<ExplanationNode<'a>>,
    expr_chains: BTreeMap<*const MirRelationExpr, usize>,
    local_id_chains: BTreeMap<LocalId, usize>,
    chain_local_ids: BTreeMap<usize, LocalId>,
    chain: usize,
}
👎Deprecated: Use explain_new instead.
Expand description

An ViewExplanation facilitates pretty-printing of a MirRelationExpr.

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
👎Deprecated: Use explain_new instead.
§nodes: Vec<ExplanationNode<'a>>
👎Deprecated: Use explain_new instead.

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

§expr_chains: BTreeMap<*const MirRelationExpr, usize>
👎Deprecated: Use explain_new instead.

Records the chain ID that was assigned to each expression.

§local_id_chains: BTreeMap<LocalId, usize>
👎Deprecated: Use explain_new instead.

Records the chain ID that was assigned to each let.

§chain_local_ids: BTreeMap<usize, LocalId>
👎Deprecated: Use explain_new instead.

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

§chain: usize
👎Deprecated: Use explain_new instead.

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

Implementations§

👎Deprecated: Use explain_new instead.
👎Deprecated: Use explain_new instead.

Attach type information into the explanation.

👎Deprecated: Use explain_new instead.
👎Deprecated: Use explain_new instead.
👎Deprecated: Use explain_new instead.

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
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