Struct kodept_ast::Lambda
source · pub struct Lambda { /* private fields */ }Implementations§
source§impl Lambda
impl Lambda
pub fn binds<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, Lambda, ContainerT<Vec<Reference>>>
pub fn binds_mut<'a>(&self, tree: &'a mut SyntaxTree)
source§impl Lambda
impl Lambda
pub fn expr<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, Lambda, ContainerT<Identity<Operation>>>
pub fn expr_mut<'a>(&self, tree: &'a mut SyntaxTree)
Trait Implementations§
source§impl From<Lambda> for GenericASTNode
impl From<Lambda> for GenericASTNode
source§fn from(original: Lambda) -> GenericASTNode
fn from(original: Lambda) -> GenericASTNode
Converts to this type from the input type.
source§impl HasChildrenMarker<<Identity<Operation> as FromOptVec>::T> for Lambda
impl HasChildrenMarker<<Identity<Operation> as FromOptVec>::T> for Lambda
type Container = Identity<Operation>
fn get_children<'b>(
&self,
tree: &'b SyntaxTree,
token: &'b GhostToken
) -> ChildrenRef<'b, Self, Child>where
for<'a> &'a Child: TryFrom<&'a GenericASTNode>,
Self: 'static,
for<'a> <&'a GenericASTNode as TryInto<&'a Child>>::Error: Debug,
fn for_children_mut<'b, F, T>(
&self,
tree: &'b mut SyntaxTree,
handler: F
) -> Vec<T>where
for<'a> &'a mut Child: TryFrom<&'a mut GenericASTNode>,
Self: 'static,
F: FnMut(&mut Child) -> T,
source§impl HasChildrenMarker<<Vec<Reference> as FromOptVec>::T> for Lambda
impl HasChildrenMarker<<Vec<Reference> as FromOptVec>::T> for Lambda
type Container = Vec<Reference>
fn get_children<'b>(
&self,
tree: &'b SyntaxTree,
token: &'b GhostToken
) -> ChildrenRef<'b, Self, Child>where
for<'a> &'a Child: TryFrom<&'a GenericASTNode>,
Self: 'static,
for<'a> <&'a GenericASTNode as TryInto<&'a Child>>::Error: Debug,
fn for_children_mut<'b, F, T>(
&self,
tree: &'b mut SyntaxTree,
handler: F
) -> Vec<T>where
for<'a> &'a mut Child: TryFrom<&'a mut GenericASTNode>,
Self: 'static,
F: FnMut(&mut Child) -> T,
source§impl Identifiable for Lambda
impl Identifiable for Lambda
source§impl PartialEq for Lambda
impl PartialEq for Lambda
source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Lambda
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Lambda
source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Lambda
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Lambda
source§impl TryFrom<GenericASTNode> for Lambda
impl TryFrom<GenericASTNode> for Lambda
impl StructuralPartialEq for Lambda
Auto Trait Implementations§
impl RefUnwindSafe for Lambda
impl Send for Lambda
impl Sync for Lambda
impl Unpin for Lambda
impl UnwindSafe for Lambda
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