Struct kodept_ast::FunctionDeclaration
source · pub struct FunctionDeclaration(/* private fields */);Implementations§
source§impl FunctionDeclaration
impl FunctionDeclaration
pub fn as_bodied(&self) -> Option<&BodiedFunctionDeclaration>
pub fn as_bodied_mut(&mut self) -> Option<&mut BodiedFunctionDeclaration>
pub fn as_abstract(&self) -> Option<&AbstractFunctionDeclaration>
pub fn as_abstract_mut(&mut self) -> Option<&mut AbstractFunctionDeclaration>
Trait Implementations§
source§impl Debug for FunctionDeclaration
impl Debug for FunctionDeclaration
source§impl From<GenericASTNode> for FunctionDeclaration
impl From<GenericASTNode> for FunctionDeclaration
source§fn from(original: GenericASTNode) -> FunctionDeclaration
fn from(original: GenericASTNode) -> FunctionDeclaration
Converts to this type from the input type.
source§impl NodeUnion for FunctionDeclaration
impl NodeUnion for FunctionDeclaration
fn contains(node: &GenericASTNode) -> bool
fn wrap(node: &GenericASTNode) -> &Self
fn wrap_mut(node: &mut GenericASTNode) -> &mut Self
source§impl PartialEq for FunctionDeclaration
impl PartialEq for FunctionDeclaration
source§fn eq(&self, other: &FunctionDeclaration) -> bool
fn eq(&self, other: &FunctionDeclaration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> TryFrom<&'a GenericASTNode> for &'a FunctionDeclaration
impl<'a> TryFrom<&'a GenericASTNode> for &'a FunctionDeclaration
§type Error = <&'a GenericASTNode as TryFrom<&'a GenericASTNode>>::Error
type Error = <&'a GenericASTNode as TryFrom<&'a GenericASTNode>>::Error
The type returned in the event of a conversion error.
source§impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut FunctionDeclaration
impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut FunctionDeclaration
§type Error = <&'a mut GenericASTNode as TryFrom<&'a mut GenericASTNode>>::Error
type Error = <&'a mut GenericASTNode as TryFrom<&'a mut GenericASTNode>>::Error
The type returned in the event of a conversion error.
impl StructuralPartialEq for FunctionDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for FunctionDeclaration
impl Send for FunctionDeclaration
impl Sync for FunctionDeclaration
impl Unpin for FunctionDeclaration
impl UnwindSafe for FunctionDeclaration
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