Skip to main content

ExprDisplay

Trait ExprDisplay 

Source
pub trait ExprDisplay: Display {
    // Required methods
    fn display_child(&self, index: usize) -> &dyn ExprDisplay;
    fn display_children_count(&self) -> usize;
}
Expand description

Read-only expression-tree interface used by scalar functions for SQL-style formatting.

Both Expression and BoundExpression implement this interface, allowing scalar functions to format either representation without converting between them.

Required Methods§

Source

fn display_child(&self, index: usize) -> &dyn ExprDisplay

Return the child at index.

Source

fn display_children_count(&self) -> usize

Return the number of children in this node.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§