Trait Build

Source
pub(crate) trait Build: Expression + Sized {
    // Required method
    fn build(
        prost: &ExprNode,
        build_child: impl Fn(&ExprNode) -> Result<BoxedExpression>,
    ) -> Result<Self>;
}
Expand description

Manually build the expression Self from protobuf.

Required Methods§

Source

fn build( prost: &ExprNode, build_child: impl Fn(&ExprNode) -> Result<BoxedExpression>, ) -> Result<Self>

Build the expression Self from protobuf.

To build children, call build_child on each child instead of build_from_prost.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§