pub struct GraphQLLanguage {}Expand description
GraphQL 语言实现
Trait Implementations§
Source§impl Clone for GraphQLLanguage
impl Clone for GraphQLLanguage
Source§fn clone(&self) -> GraphQLLanguage
fn clone(&self) -> GraphQLLanguage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphQLLanguage
impl Debug for GraphQLLanguage
Source§impl Language for GraphQLLanguage
impl Language for GraphQLLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Dsl
const CATEGORY: LanguageCategory = LanguageCategory::Dsl
The category of the language.
Source§type TokenType = GraphQLSyntaxKind
type TokenType = GraphQLSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = GraphQLSyntaxKind
type ElementType = GraphQLSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<GraphQLLanguage> for GraphQLLexer<'config>
impl<'config> Lexer<GraphQLLanguage> for GraphQLLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
text: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<GraphQLLanguage>,
) -> LexOutput<GraphQLLanguage>
fn lex<'a, S: Source + ?Sized>( &self, text: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<GraphQLLanguage>, ) -> LexOutput<GraphQLLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<GraphQLLanguage> for GraphQLParser<'config>
impl<'config> Parser<GraphQLLanguage> for GraphQLParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<GraphQLLanguage>,
) -> ParseOutput<'a, GraphQLLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<GraphQLLanguage>, ) -> ParseOutput<'a, GraphQLLanguage>
The core parsing entry point. Read more
Auto Trait Implementations§
impl Freeze for GraphQLLanguage
impl RefUnwindSafe for GraphQLLanguage
impl Send for GraphQLLanguage
impl Sync for GraphQLLanguage
impl Unpin for GraphQLLanguage
impl UnwindSafe for GraphQLLanguage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more