pub struct NamedLambda {
pub name: Name,
pub params: Vec<String>,
pub body: Expr,
}Expand description
A named LAMBDA: its parameters and its body, in which parameter i is
the reference functions::lambda_param(i), or, where the body uses
it as a category (MAX(x OVER c)), the category
functions::lambda_category(i). A body reads only its parameters
(no measures), so a call depends on just its arguments; it may call
lambdas defined before it, never itself.
Fields§
§name: Name§params: Vec<String>§body: ExprImplementations§
Source§impl NamedLambda
impl NamedLambda
Sourcepub fn param_kinds(&self) -> Result<Vec<LambdaParam>, String>
pub fn param_kinds(&self) -> Result<Vec<LambdaParam>, String>
What each parameter takes, from how the body uses it. An error names a parameter used both as a value and as a category.
Trait Implementations§
Source§impl Clone for NamedLambda
impl Clone for NamedLambda
Source§fn clone(&self) -> NamedLambda
fn clone(&self) -> NamedLambda
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NamedLambda
impl Debug for NamedLambda
Source§impl<'de> Deserialize<'de> for NamedLambda
impl<'de> Deserialize<'de> for NamedLambda
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 NamedLambda
impl PartialEq for NamedLambda
Source§impl Serialize for NamedLambda
impl Serialize for NamedLambda
impl StructuralPartialEq for NamedLambda
Auto Trait Implementations§
impl Freeze for NamedLambda
impl RefUnwindSafe for NamedLambda
impl Send for NamedLambda
impl Sync for NamedLambda
impl Unpin for NamedLambda
impl UnsafeUnpin for NamedLambda
impl UnwindSafe for NamedLambda
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