pub struct AbstFnDecl {
pub name: String,
/* private fields */
}
Fields§
§name: String
Implementations§
Source§impl AbstFnDecl
impl AbstFnDecl
Source§impl AbstFnDecl
impl AbstFnDecl
pub fn parameters<'a>( &self, tree: &'a SyntaxTree, token: &'a PermTkn, ) -> ChildrenRef<'a, AbstFnDecl, ContainerT<Vec<TyParam>>, 0>
pub fn parameters_mut<'a>( &self, tree: &'a SyntaxTree, ) -> ChildrenMut<'a, AbstFnDecl, ContainerT<Vec<TyParam>>, 0>
Source§impl AbstFnDecl
impl AbstFnDecl
pub fn return_type<'a>( &self, tree: &'a SyntaxTree, token: &'a PermTkn, ) -> ChildrenRef<'a, AbstFnDecl, ContainerT<Option<Type>>, 0>
pub fn return_type_mut<'a>( &self, tree: &'a SyntaxTree, ) -> ChildrenMut<'a, AbstFnDecl, ContainerT<Option<Type>>, 0>
Trait Implementations§
Source§impl Debug for AbstFnDecl
impl Debug for AbstFnDecl
Source§impl From<AbstFnDecl> for AnyNode
impl From<AbstFnDecl> for AnyNode
Source§fn from(original: AbstFnDecl) -> AnyNode
fn from(original: AbstFnDecl) -> AnyNode
Converts to this type from the input type.
Source§impl From<AbstFnDecl> for FnDecl
impl From<AbstFnDecl> for FnDecl
Source§fn from(value: AbstFnDecl) -> Self
fn from(value: AbstFnDecl) -> Self
Converts to this type from the input type.
Source§impl HasChildrenMarker<<Option<Type> as FromOptVec>::T, 0> for AbstFnDecl
impl HasChildrenMarker<<Option<Type> as FromOptVec>::T, 0> for AbstFnDecl
type Container = Option<Type>
fn get_children<'b>(
&self,
tree: &'b SyntaxTree,
token: &'b PermTkn,
) -> ChildrenRef<'b, Self, Child, TAG>where
AnyNode: ConvertibleToRef<Child>,
fn get_children_mut<'b>(
&self,
tree: &'b SyntaxTree,
) -> ChildrenMut<'b, Self, Child, TAG>where
AnyNode: ConvertibleToMut<Child>,
Source§impl HasChildrenMarker<<Vec<TyParam> as FromOptVec>::T, 0> for AbstFnDecl
impl HasChildrenMarker<<Vec<TyParam> as FromOptVec>::T, 0> for AbstFnDecl
type Container = Vec<TyParam>
fn get_children<'b>(
&self,
tree: &'b SyntaxTree,
token: &'b PermTkn,
) -> ChildrenRef<'b, Self, Child, TAG>where
AnyNode: ConvertibleToRef<Child>,
fn get_children_mut<'b>(
&self,
tree: &'b SyntaxTree,
) -> ChildrenMut<'b, Self, Child, TAG>where
AnyNode: ConvertibleToMut<Child>,
Source§impl PartialEq for AbstFnDecl
impl PartialEq for AbstFnDecl
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime AbstFnDecl
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime AbstFnDecl
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut AbstFnDecl
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut AbstFnDecl
Source§impl TryFrom<AnyNode> for AbstFnDecl
impl TryFrom<AnyNode> for AbstFnDecl
impl StructuralPartialEq for AbstFnDecl
Auto Trait Implementations§
impl !Freeze for AbstFnDecl
impl !RefUnwindSafe for AbstFnDecl
impl Send for AbstFnDecl
impl !Sync for AbstFnDecl
impl Unpin for AbstFnDecl
impl UnwindSafe for AbstFnDecl
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