Struct ExprProject
pub struct ExprProject {
pub base: Box<Expr>,
pub projection: Projection,
}Expand description
Projects a field or element from a base expression.
A projection extracts a nested value from a record, tuple, or other composite type using a path of field indices.
§Examples
project(record, [0]) // extracts the first field
project(record, [1, 2]) // extracts field 1, then field 2Fields§
§base: Box<Expr>The expression to project from.
projection: ProjectionThe path specifying which field(s) to extract.
Trait Implementations§
§impl Clone for ExprProject
impl Clone for ExprProject
§fn clone(&self) -> ExprProject
fn clone(&self) -> ExprProject
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ExprProject
impl Debug for ExprProject
§impl From<ExprProject> for Expr
impl From<ExprProject> for Expr
§fn from(value: ExprProject) -> Expr
fn from(value: ExprProject) -> Expr
Converts to this type from the input type.
§impl PartialEq for ExprProject
impl PartialEq for ExprProject
impl StructuralPartialEq for ExprProject
Auto Trait Implementations§
impl Freeze for ExprProject
impl RefUnwindSafe for ExprProject
impl Send for ExprProject
impl Sync for ExprProject
impl Unpin for ExprProject
impl UnwindSafe for ExprProject
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