Struct apollo_parser::cst::UnionTypeDefinition
source · pub struct UnionTypeDefinition { /* private fields */ }
Implementations§
source§impl UnionTypeDefinition
impl UnionTypeDefinition
pub fn description(&self) -> Option<Description>
pub fn union_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn name(&self) -> Option<Name>
pub fn directives(&self) -> Option<Directives>
pub fn union_member_types(&self) -> Option<UnionMemberTypes>
Trait Implementations§
source§impl Clone for UnionTypeDefinition
impl Clone for UnionTypeDefinition
source§fn clone(&self) -> UnionTypeDefinition
fn clone(&self) -> UnionTypeDefinition
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 UnionTypeDefinition
impl CstNode for UnionTypeDefinition
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 UnionTypeDefinition
impl Debug for UnionTypeDefinition
source§impl From<UnionTypeDefinition> for Definition
impl From<UnionTypeDefinition> for Definition
source§fn from(node: UnionTypeDefinition) -> Definition
fn from(node: UnionTypeDefinition) -> Definition
Converts to this type from the input type.
source§impl Hash for UnionTypeDefinition
impl Hash for UnionTypeDefinition
source§impl PartialEq for UnionTypeDefinition
impl PartialEq for UnionTypeDefinition
source§fn eq(&self, other: &UnionTypeDefinition) -> bool
fn eq(&self, other: &UnionTypeDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UnionTypeDefinition
impl StructuralPartialEq for UnionTypeDefinition
Auto Trait Implementations§
impl Freeze for UnionTypeDefinition
impl !RefUnwindSafe for UnionTypeDefinition
impl !Send for UnionTypeDefinition
impl !Sync for UnionTypeDefinition
impl Unpin for UnionTypeDefinition
impl !UnwindSafe for UnionTypeDefinition
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