Skip to main content

AsPhysicalExprRef

Trait AsPhysicalExprRef 

Source
pub trait AsPhysicalExprRef {
    // Required method
    fn as_physical_expr_ref(&self) -> &Arc<dyn PhysicalExpr> ;
}
Expand description

Allows a type to be treated as a reference to an Arc<dyn PhysicalExpr>.

Used by apply_expression_roots.

Required Methods§

Source

fn as_physical_expr_ref(&self) -> &Arc<dyn PhysicalExpr>

Returns the referenced physical expression.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl AsPhysicalExprRef for Arc<dyn PhysicalExpr>

Allows an Arc<dyn PhysicalExpr> to be treated as a reference to itself.

This is needed because Arc<dyn PhysicalExpr> does not implement AsRef<Arc<dyn PhysicalExpr>>.

Source§

impl<T> AsPhysicalExprRef for &T

Implementors§

Source§

impl AsPhysicalExprRef for ProjectionExpr

Allows a ProjectionExpr to be treated as a reference to its Arc<dyn PhysicalExpr>.