pub struct EnumTypeDefinition { /* private fields */ }
Implementations§
source§impl EnumTypeDefinition
impl EnumTypeDefinition
pub fn description(&self) -> Option<Description>
pub fn enum_token(&self) -> Option<SyntaxToken>
pub fn name(&self) -> Option<Name>
pub fn directives(&self) -> Option<Directives>
pub fn enum_values_definition(&self) -> Option<EnumValuesDefinition>
Trait Implementations§
source§impl Clone for EnumTypeDefinition
impl Clone for EnumTypeDefinition
source§fn clone(&self) -> EnumTypeDefinition
fn clone(&self) -> EnumTypeDefinition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CstNode for EnumTypeDefinition
impl CstNode for EnumTypeDefinition
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn source_string(&self) -> String
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
source§impl Debug for EnumTypeDefinition
impl Debug for EnumTypeDefinition
source§impl From<EnumTypeDefinition> for Definition
impl From<EnumTypeDefinition> for Definition
source§fn from(node: EnumTypeDefinition) -> Definition
fn from(node: EnumTypeDefinition) -> Definition
Converts to this type from the input type.
source§impl Hash for EnumTypeDefinition
impl Hash for EnumTypeDefinition
source§impl PartialEq for EnumTypeDefinition
impl PartialEq for EnumTypeDefinition
impl Eq for EnumTypeDefinition
impl StructuralPartialEq for EnumTypeDefinition
Auto Trait Implementations§
impl Freeze for EnumTypeDefinition
impl !RefUnwindSafe for EnumTypeDefinition
impl !Send for EnumTypeDefinition
impl !Sync for EnumTypeDefinition
impl Unpin for EnumTypeDefinition
impl !UnwindSafe for EnumTypeDefinition
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)