Struct apollo_parser::ast::RootOperationTypeDefinition
source · [−]pub struct RootOperationTypeDefinition { /* private fields */ }
Implementations
sourceimpl RootOperationTypeDefinition
impl RootOperationTypeDefinition
pub fn operation_type(&self) -> Option<OperationType>
pub fn colon_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn named_type(&self) -> Option<NamedType>
Trait Implementations
sourceimpl AstNode for RootOperationTypeDefinition
impl AstNode for RootOperationTypeDefinition
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 RootOperationTypeDefinition
impl Clone for RootOperationTypeDefinition
sourcefn clone(&self) -> RootOperationTypeDefinition
fn clone(&self) -> RootOperationTypeDefinition
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 RootOperationTypeDefinition
impl Debug for RootOperationTypeDefinition
sourceimpl Display for RootOperationTypeDefinition
impl Display for RootOperationTypeDefinition
sourceimpl Hash for RootOperationTypeDefinition
impl Hash for RootOperationTypeDefinition
sourceimpl PartialEq<RootOperationTypeDefinition> for RootOperationTypeDefinition
impl PartialEq<RootOperationTypeDefinition> for RootOperationTypeDefinition
sourcefn eq(&self, other: &RootOperationTypeDefinition) -> bool
fn eq(&self, other: &RootOperationTypeDefinition) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RootOperationTypeDefinition) -> bool
fn ne(&self, other: &RootOperationTypeDefinition) -> bool
This method tests for !=
.
impl Eq for RootOperationTypeDefinition
impl StructuralEq for RootOperationTypeDefinition
impl StructuralPartialEq for RootOperationTypeDefinition
Auto Trait Implementations
impl !RefUnwindSafe for RootOperationTypeDefinition
impl !Send for RootOperationTypeDefinition
impl !Sync for RootOperationTypeDefinition
impl Unpin for RootOperationTypeDefinition
impl !UnwindSafe for RootOperationTypeDefinition
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