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