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