Struct apollo_parser::cst::DirectiveLocation
source · pub struct DirectiveLocation { /* private fields */ }
Implementations§
source§impl DirectiveLocation
impl DirectiveLocation
pub fn query_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn mutation_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn subscription_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn field_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn fragment_definition_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn fragment_spread_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn inline_fragment_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn variable_definition_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn schema_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn scalar_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn object_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn field_definition_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn argument_definition_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn interface_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn union_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn enum_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn enum_value_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn input_object_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn input_field_definition_token( &self ) -> Option<SyntaxToken<GraphQLLanguage>>
Trait Implementations§
source§impl Clone for DirectiveLocation
impl Clone for DirectiveLocation
source§fn clone(&self) -> DirectiveLocation
fn clone(&self) -> DirectiveLocation
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 DirectiveLocation
impl CstNode for DirectiveLocation
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 DirectiveLocation
impl Debug for DirectiveLocation
source§impl Hash for DirectiveLocation
impl Hash for DirectiveLocation
source§impl PartialEq for DirectiveLocation
impl PartialEq for DirectiveLocation
source§fn eq(&self, other: &DirectiveLocation) -> bool
fn eq(&self, other: &DirectiveLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DirectiveLocation
impl StructuralPartialEq for DirectiveLocation
Auto Trait Implementations§
impl Freeze for DirectiveLocation
impl !RefUnwindSafe for DirectiveLocation
impl !Send for DirectiveLocation
impl !Sync for DirectiveLocation
impl Unpin for DirectiveLocation
impl !UnwindSafe for DirectiveLocation
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