Struct kodept_ast::BodiedFunctionDeclaration
source · pub struct BodiedFunctionDeclaration {
pub name: String,
/* private fields */
}Fields§
§name: StringImplementations§
source§impl BodiedFunctionDeclaration
impl BodiedFunctionDeclaration
pub fn parameters<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, BodiedFunctionDeclaration, ContainerT<Vec<Parameter>>>
pub fn parameters_mut<'a>(&self, tree: &'a mut SyntaxTree)
source§impl BodiedFunctionDeclaration
impl BodiedFunctionDeclaration
pub fn return_type<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, BodiedFunctionDeclaration, ContainerT<Option<Type>>>
pub fn return_type_mut<'a>(&self, tree: &'a mut SyntaxTree)
source§impl BodiedFunctionDeclaration
impl BodiedFunctionDeclaration
pub fn body<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, BodiedFunctionDeclaration, ContainerT<Identity<Body>>>
pub fn body_mut<'a>(&self, tree: &'a mut SyntaxTree)
Trait Implementations§
source§impl Debug for BodiedFunctionDeclaration
impl Debug for BodiedFunctionDeclaration
source§impl From<BodiedFunctionDeclaration> for GenericASTNode
impl From<BodiedFunctionDeclaration> for GenericASTNode
source§fn from(original: BodiedFunctionDeclaration) -> GenericASTNode
fn from(original: BodiedFunctionDeclaration) -> GenericASTNode
Converts to this type from the input type.
source§impl HasChildrenMarker<<Identity<Body> as FromOptVec>::T> for BodiedFunctionDeclaration
impl HasChildrenMarker<<Identity<Body> as FromOptVec>::T> for BodiedFunctionDeclaration
type Container = Identity<Body>
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<<Option<Type> as FromOptVec>::T> for BodiedFunctionDeclaration
impl HasChildrenMarker<<Option<Type> as FromOptVec>::T> for BodiedFunctionDeclaration
type Container = Option<Type>
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<Parameter> as FromOptVec>::T> for BodiedFunctionDeclaration
impl HasChildrenMarker<<Vec<Parameter> as FromOptVec>::T> for BodiedFunctionDeclaration
type Container = Vec<Parameter>
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 PartialEq for BodiedFunctionDeclaration
impl PartialEq for BodiedFunctionDeclaration
source§fn eq(&self, other: &BodiedFunctionDeclaration) -> bool
fn eq(&self, other: &BodiedFunctionDeclaration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime BodiedFunctionDeclaration
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime BodiedFunctionDeclaration
source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut BodiedFunctionDeclaration
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut BodiedFunctionDeclaration
impl StructuralPartialEq for BodiedFunctionDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for BodiedFunctionDeclaration
impl Send for BodiedFunctionDeclaration
impl Sync for BodiedFunctionDeclaration
impl Unpin for BodiedFunctionDeclaration
impl UnwindSafe for BodiedFunctionDeclaration
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