pub struct Expr {
pub kind: ExprKind,
pub span: Option<Span>,
pub alias: Option<String>,
pub id: Option<usize>,
pub target_id: Option<usize>,
pub ty: Option<Ty>,
pub lineage: Option<Lineage>,
pub needs_window: bool,
pub flatten: bool,
}
Expand description
Expr is anything that has a value and thus a type. Most of these can contain other Expr themselves; literals should be ExprKind::Literal.
Fields§
§kind: ExprKind
§span: Option<Span>
§alias: Option<String>
§id: Option<usize>
Unique identificator of the node. Set exactly once during semantic::resolve.
target_id: Option<usize>
For Idents, this is id of node referenced by the ident
ty: Option<Ty>
Type of expression this node represents. None means that type should be inferred.
lineage: Option<Lineage>
Information about where data of this expression will come from.
Currently, this is used to infer relational pipeline frames. Must always exists if ty is a relation.
needs_window: bool
§flatten: bool
When true on ExprKind::Tuple, this list will be flattened when placed in some other list.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Expr
impl<'de> Deserialize<'de> for Expr
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Expr
impl PartialEq for Expr
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin 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