Struct kodept_ast::Application
source · pub struct Application { /* private fields */ }Implementations§
source§impl Application
impl Application
pub fn expr<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, Application, ContainerT<Identity<AOperation>>>
pub fn expr_mut<'a>(&self, tree: &'a mut SyntaxTree)
source§impl Application
impl Application
pub fn params<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, Application, ContainerT<Vec<Operation>>>
pub fn params_mut<'a>(&self, tree: &'a mut SyntaxTree)
Trait Implementations§
source§impl Debug for Application
impl Debug for Application
source§impl From<Application> for GenericASTNode
impl From<Application> for GenericASTNode
source§fn from(original: Application) -> GenericASTNode
fn from(original: Application) -> GenericASTNode
Converts to this type from the input type.
source§impl HasChildrenMarker<<Identity<AOperation> as FromOptVec>::T> for Application
impl HasChildrenMarker<<Identity<AOperation> as FromOptVec>::T> for Application
type Container = Identity<AOperation>
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<Operation> as FromOptVec>::T> for Application
impl HasChildrenMarker<<Vec<Operation> as FromOptVec>::T> for Application
type Container = Vec<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 Identifiable for Application
impl Identifiable for Application
source§impl PartialEq for Application
impl PartialEq for Application
source§fn eq(&self, other: &Application) -> bool
fn eq(&self, other: &Application) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Application
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Application
source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Application
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Application
source§impl TryFrom<GenericASTNode> for Application
impl TryFrom<GenericASTNode> for Application
impl StructuralPartialEq for Application
Auto Trait Implementations§
impl RefUnwindSafe for Application
impl Send for Application
impl Sync for Application
impl Unpin for Application
impl UnwindSafe for Application
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