Struct apollo_parser::ast::ScalarTypeExtension
source · pub struct ScalarTypeExtension { /* private fields */ }
Implementations§
source§impl ScalarTypeExtension
impl ScalarTypeExtension
pub fn extend_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn scalar_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn name(&self) -> Option<Name>
pub fn directives(&self) -> Option<Directives>
Trait Implementations§
source§impl AstNode for ScalarTypeExtension
impl AstNode for ScalarTypeExtension
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 Clone for ScalarTypeExtension
impl Clone for ScalarTypeExtension
source§fn clone(&self) -> ScalarTypeExtension
fn clone(&self) -> ScalarTypeExtension
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 Debug for ScalarTypeExtension
impl Debug for ScalarTypeExtension
source§impl From<ScalarTypeExtension> for Definition
impl From<ScalarTypeExtension> for Definition
source§fn from(node: ScalarTypeExtension) -> Definition
fn from(node: ScalarTypeExtension) -> Definition
Converts to this type from the input type.
source§impl Hash for ScalarTypeExtension
impl Hash for ScalarTypeExtension
source§impl PartialEq<ScalarTypeExtension> for ScalarTypeExtension
impl PartialEq<ScalarTypeExtension> for ScalarTypeExtension
source§fn eq(&self, other: &ScalarTypeExtension) -> bool
fn eq(&self, other: &ScalarTypeExtension) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.