pub struct EnumDecl {
pub kind: EnumKind,
pub name: String,
/* private fields */
}
Fields§
§kind: EnumKind
§name: String
Implementations§
Source§impl EnumDecl
impl EnumDecl
pub fn contents<'a>( &self, tree: &'a SyntaxTree, token: &'a PermTkn, ) -> ChildrenRef<'a, EnumDecl, ContainerT<Vec<TyName>>, 0>
pub fn contents_mut<'a>( &self, tree: &'a SyntaxTree, ) -> ChildrenMut<'a, EnumDecl, ContainerT<Vec<TyName>>, 0>
Trait Implementations§
Source§impl HasChildrenMarker<<Vec<TyName> as FromOptVec>::T, 0> for EnumDecl
impl HasChildrenMarker<<Vec<TyName> as FromOptVec>::T, 0> for EnumDecl
type Container = Vec<TyName>
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<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime EnumDecl
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime EnumDecl
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut EnumDecl
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut EnumDecl
impl StructuralPartialEq for EnumDecl
Auto Trait Implementations§
impl !Freeze for EnumDecl
impl !RefUnwindSafe for EnumDecl
impl Send for EnumDecl
impl !Sync for EnumDecl
impl Unpin for EnumDecl
impl UnwindSafe for EnumDecl
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