Struct valkyrie_ast::LambdaNode
source · pub struct LambdaNode {
pub annotations: AnnotationNode,
pub generics: ParametersList,
pub parameters: ParametersList,
pub returns: FunctionReturnNode,
pub body: StatementBlock,
pub span: Range<u32>,
}Expand description
lambda(args) { ... }
Fields§
§annotations: AnnotationNodeThe modifiers of the node.
generics: ParametersListThy type parameters of this function
parameters: ParametersListThy value parameters of this function
returns: FunctionReturnNode: ReturnType / [EffectType]
body: StatementBlock{ body }
span: Range<u32>The range of the declaration.
Trait Implementations§
source§impl Clone for LambdaNode
impl Clone for LambdaNode
source§fn clone(&self) -> LambdaNode
fn clone(&self) -> LambdaNode
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 LambdaNode
impl Debug for LambdaNode
source§impl From<LambdaNode> for ExpressionKind
impl From<LambdaNode> for ExpressionKind
source§fn from(o: LambdaNode) -> Self
fn from(o: LambdaNode) -> Self
Converts to this type from the input type.
source§impl Hash for LambdaNode
impl Hash for LambdaNode
source§impl PartialEq for LambdaNode
impl PartialEq for LambdaNode
source§fn eq(&self, other: &LambdaNode) -> bool
fn eq(&self, other: &LambdaNode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ValkyrieNode for LambdaNode
impl ValkyrieNode for LambdaNode
impl Eq for LambdaNode
impl StructuralPartialEq for LambdaNode
Auto Trait Implementations§
impl RefUnwindSafe for LambdaNode
impl Send for LambdaNode
impl Sync for LambdaNode
impl Unpin for LambdaNode
impl UnwindSafe for LambdaNode
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