Skip to main content

ExpressionInfo

Trait ExpressionInfo 

Source
pub trait ExpressionInfo:
    Debug
    + Sync
    + Send {
    // Required method
    fn return_type(&self) -> DataType;

    // Provided method
    fn input_ref_index(&self) -> Option<usize> { ... }
}
Expand description

Common metadata of an expression.

Required Methods§

Source

fn return_type(&self) -> DataType

Get the return data type.

Provided Methods§

Source

fn input_ref_index(&self) -> Option<usize>

Get the index if the expression is an InputRef.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + ExpressionInfo + ?Sized> ExpressionInfo for &'a T
where &'a T: Debug + Sync + Send,

Source§

impl<T: ExpressionInfo + ?Sized> ExpressionInfo for Arc<T>
where Arc<T>: Debug + Sync + Send,

Source§

impl<T: ExpressionInfo + ?Sized> ExpressionInfo for Box<T>
where Box<T>: Debug + Sync + Send,

Implementors§