Enum apollo_parser::ast::Type
source · [−]pub enum Type {
NamedType(NamedType),
ListType(ListType),
NonNullType(NonNullType),
}
Variants
NamedType(NamedType)
ListType(ListType)
NonNullType(NonNullType)
Trait Implementations
sourceimpl AstNode for Type
impl AstNode for Type
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 From<NonNullType> for Type
impl From<NonNullType> for Type
sourcefn from(node: NonNullType) -> Type
fn from(node: NonNullType) -> Type
Converts to this type from the input type.
impl Eq for Type
impl StructuralEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations
impl !RefUnwindSafe for Type
impl !Send for Type
impl !Sync for Type
impl Unpin for Type
impl !UnwindSafe for Type
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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