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