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<GraphQLLanguage>) -> Option<Self>
fn syntax(&self) -> &SyntaxNode<GraphQLLanguage>
fn clone_for_update(&self) -> Self where
Self: Sized,
fn clone_subtree(&self) -> Self where
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 more
sourceimpl Debug for DirectiveLocation
impl Debug for DirectiveLocation
sourceimpl Display for DirectiveLocation
impl Display 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DirectiveLocation) -> bool
fn ne(&self, other: &DirectiveLocation) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more