pub struct Expr(Box<Expression>);Expand description
A Substrait expression carried as an extension argument or output column.
Boxed because proto::Expression is large (multiple Vec fields in
variants like ScalarFunction).
Tuple Fields§
§0: Box<Expression>Implementations§
Source§impl Expr
impl Expr
Sourcepub fn as_proto(&self) -> &Expression
pub fn as_proto(&self) -> &Expression
Borrow the underlying Substrait expression protobuf.
Sourcepub fn to_proto(&self) -> Expression
pub fn to_proto(&self) -> Expression
Clone the underlying Substrait expression protobuf.
Sourcepub fn as_direct_reference(&self) -> Option<Reference>
pub fn as_direct_reference(&self) -> Option<Reference>
If this expression is a direct field reference ($N), return it.
Trait Implementations§
Source§impl From<Expr> for Expression
impl From<Expr> for Expression
Source§impl From<Expr> for ExtensionValue
impl From<Expr> for ExtensionValue
Source§impl From<Expression> for Expr
impl From<Expression> for Expr
Source§fn from(expr: Expression) -> Self
fn from(expr: Expression) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more