Struct apollo_parser::ast::DirectiveLocation
source · pub struct DirectiveLocation { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl AstNode for DirectiveLocation
impl AstNode 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,
sourceimpl Clone for DirectiveLocation
impl Clone for DirectiveLocation
sourcefn clone(&self) -> DirectiveLocation
fn clone(&self) -> DirectiveLocation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DirectiveLocation
impl Debug for DirectiveLocation
sourceimpl Hash for DirectiveLocation
impl Hash for DirectiveLocation
sourceimpl PartialEq<DirectiveLocation> for DirectiveLocation
impl PartialEq<DirectiveLocation> for DirectiveLocation
sourcefn eq(&self, other: &DirectiveLocation) -> bool
fn eq(&self, other: &DirectiveLocation) -> bool
impl Eq for DirectiveLocation
impl StructuralEq for DirectiveLocation
impl StructuralPartialEq for DirectiveLocation
Auto Trait Implementations
impl !RefUnwindSafe for DirectiveLocation
impl !Send for DirectiveLocation
impl !Sync for DirectiveLocation
impl Unpin for DirectiveLocation
impl !UnwindSafe for DirectiveLocation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more