Struct apollo_parser::cst::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 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 CstNode for ScalarTypeExtension
impl CstNode 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 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 for ScalarTypeExtension
impl PartialEq 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 ==
.impl Eq for ScalarTypeExtension
impl StructuralPartialEq for ScalarTypeExtension
Auto Trait Implementations§
impl Freeze for ScalarTypeExtension
impl !RefUnwindSafe for ScalarTypeExtension
impl !Send for ScalarTypeExtension
impl !Sync for ScalarTypeExtension
impl Unpin for ScalarTypeExtension
impl !UnwindSafe for ScalarTypeExtension
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