pub struct LambdaExpr {
pub parameters: Vec<Identifier>,
pub body: Expression,
pub colon: bool,
pub parameter_types: Vec<Option<DataType>>,
}Expand description
Lambda expression
Fields§
§parameters: Vec<Identifier>§body: Expression§colon: boolTrue if using DuckDB’s LAMBDA x : expr syntax (vs x -> expr)
parameter_types: Vec<Option<DataType>>Optional type annotations for parameters (Snowflake: a int -> a + 1) Maps parameter index to data type
Trait Implementations§
Source§impl Clone for LambdaExpr
impl Clone for LambdaExpr
Source§fn clone(&self) -> LambdaExpr
fn clone(&self) -> LambdaExpr
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 moreSource§impl Debug for LambdaExpr
impl Debug for LambdaExpr
Source§impl<'de> Deserialize<'de> for LambdaExpr
impl<'de> Deserialize<'de> for LambdaExpr
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 LambdaExpr
impl PartialEq for LambdaExpr
Source§impl Serialize for LambdaExpr
impl Serialize for LambdaExpr
impl StructuralPartialEq for LambdaExpr
Auto Trait Implementations§
impl Freeze for LambdaExpr
impl RefUnwindSafe for LambdaExpr
impl Send for LambdaExpr
impl Sync for LambdaExpr
impl Unpin for LambdaExpr
impl UnwindSafe for LambdaExpr
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