Enum apollo_parser::ast::Type
source · pub enum Type {
NamedType(NamedType),
ListType(ListType),
NonNullType(NonNullType),
}
Variants§
Trait Implementations§
source§impl AstNode for Type
impl AstNode for Type
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,
source§impl From<NonNullType> for Type
impl From<NonNullType> for Type
source§fn from(node: NonNullType) -> Type
fn from(node: NonNullType) -> Type
Converts to this type from the input type.