Struct kodept_ast::EnumDeclaration
source · pub struct EnumDeclaration {
pub kind: EnumKind,
pub name: String,
/* private fields */
}Fields§
§kind: EnumKind§name: StringImplementations§
source§impl EnumDeclaration
impl EnumDeclaration
pub fn contents<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, EnumDeclaration, ContainerT<Vec<TypeName>>>
pub fn contents_mut<'a>(&self, tree: &'a mut SyntaxTree)
Trait Implementations§
source§impl Debug for EnumDeclaration
impl Debug for EnumDeclaration
source§impl From<EnumDeclaration> for GenericASTNode
impl From<EnumDeclaration> for GenericASTNode
source§fn from(original: EnumDeclaration) -> GenericASTNode
fn from(original: EnumDeclaration) -> GenericASTNode
Converts to this type from the input type.
source§impl HasChildrenMarker<<Vec<TypeName> as FromOptVec>::T> for EnumDeclaration
impl HasChildrenMarker<<Vec<TypeName> as FromOptVec>::T> for EnumDeclaration
type Container = Vec<TypeName>
fn get_children<'b>(
&self,
tree: &'b SyntaxTree,
token: &'b GhostToken
) -> ChildrenRef<'b, Self, Child>where
for<'a> &'a Child: TryFrom<&'a GenericASTNode>,
Self: 'static,
for<'a> <&'a GenericASTNode as TryInto<&'a Child>>::Error: Debug,
fn for_children_mut<'b, F, T>(
&self,
tree: &'b mut SyntaxTree,
handler: F
) -> Vec<T>where
for<'a> &'a mut Child: TryFrom<&'a mut GenericASTNode>,
Self: 'static,
F: FnMut(&mut Child) -> T,
source§impl Identifiable for EnumDeclaration
impl Identifiable for EnumDeclaration
source§impl PartialEq for EnumDeclaration
impl PartialEq for EnumDeclaration
source§fn eq(&self, other: &EnumDeclaration) -> bool
fn eq(&self, other: &EnumDeclaration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime EnumDeclaration
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime EnumDeclaration
source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut EnumDeclaration
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut EnumDeclaration
source§impl TryFrom<GenericASTNode> for EnumDeclaration
impl TryFrom<GenericASTNode> for EnumDeclaration
impl StructuralPartialEq for EnumDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for EnumDeclaration
impl Send for EnumDeclaration
impl Sync for EnumDeclaration
impl Unpin for EnumDeclaration
impl UnwindSafe for EnumDeclaration
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