Struct apollo_parser::ast::ScalarTypeExtension
source · [−]pub struct ScalarTypeExtension { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl AstNode for ScalarTypeExtension
impl AstNode for ScalarTypeExtension
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 ScalarTypeExtension
impl Clone for ScalarTypeExtension
sourcefn clone(&self) -> ScalarTypeExtension
fn clone(&self) -> ScalarTypeExtension
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 ScalarTypeExtension
impl Debug for ScalarTypeExtension
sourceimpl Display for ScalarTypeExtension
impl Display for ScalarTypeExtension
sourceimpl From<ScalarTypeExtension> for Definition
impl From<ScalarTypeExtension> for Definition
sourcefn from(node: ScalarTypeExtension) -> Definition
fn from(node: ScalarTypeExtension) -> Definition
Performs the conversion.
sourceimpl Hash for ScalarTypeExtension
impl Hash for ScalarTypeExtension
sourceimpl PartialEq<ScalarTypeExtension> for ScalarTypeExtension
impl PartialEq<ScalarTypeExtension> for ScalarTypeExtension
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ScalarTypeExtension) -> bool
fn ne(&self, other: &ScalarTypeExtension) -> bool
This method tests for !=
.
impl Eq for ScalarTypeExtension
impl StructuralEq for ScalarTypeExtension
impl StructuralPartialEq for ScalarTypeExtension
Auto Trait Implementations
impl !RefUnwindSafe for ScalarTypeExtension
impl !Send for ScalarTypeExtension
impl !Sync for ScalarTypeExtension
impl Unpin for ScalarTypeExtension
impl !UnwindSafe for ScalarTypeExtension
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