Enum partiql_logical::PathComponent
source · pub enum PathComponent {
Key(BindingsName),
Index(i64),
KeyExpr(Box<ValueExpr>),
IndexExpr(Box<ValueExpr>),
}Expand description
Represents a path component in a plan.
Variants§
Key(BindingsName)
E.g. b in a.b
Index(i64)
E.g. 4 in a[4]
KeyExpr(Box<ValueExpr>)
IndexExpr(Box<ValueExpr>)
Trait Implementations§
source§impl Clone for PathComponent
impl Clone for PathComponent
source§fn clone(&self) -> PathComponent
fn clone(&self) -> PathComponent
Returns a copy 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 moresource§impl Debug for PathComponent
impl Debug for PathComponent
source§impl PartialEq<PathComponent> for PathComponent
impl PartialEq<PathComponent> for PathComponent
source§fn eq(&self, other: &PathComponent) -> bool
fn eq(&self, other: &PathComponent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.