pub struct ProtobufLanguage {}Implementations§
Trait Implementations§
Source§impl<'config> Builder<ProtobufLanguage> for ProtobufBuilder<'config>
impl<'config> Builder<ProtobufLanguage> for ProtobufBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<ProtobufLanguage>,
) -> BuildOutput<ProtobufLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<ProtobufLanguage>, ) -> BuildOutput<ProtobufLanguage>
Builds the structure from the source text.
Source§impl Clone for ProtobufLanguage
impl Clone for ProtobufLanguage
Source§fn clone(&self) -> ProtobufLanguage
fn clone(&self) -> ProtobufLanguage
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 ProtobufLanguage
impl Debug for ProtobufLanguage
Source§impl Default for ProtobufLanguage
impl Default for ProtobufLanguage
Source§fn default() -> ProtobufLanguage
fn default() -> ProtobufLanguage
Returns the “default value” for a type. Read more
Source§impl Hash for ProtobufLanguage
impl Hash for ProtobufLanguage
Source§impl Language for ProtobufLanguage
impl Language for ProtobufLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = ProtobufSyntaxKind
type TokenType = ProtobufSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = ProtobufSyntaxKind
type ElementType = ProtobufSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§type TypedRoot = ProtobufRoot
type TypedRoot = ProtobufRoot
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<ProtobufLanguage> for ProtobufLexer<'config>
impl<'config> Lexer<ProtobufLanguage> for ProtobufLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<ProtobufLanguage>,
) -> LexOutput<ProtobufLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<ProtobufLanguage>, ) -> LexOutput<ProtobufLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl Ord for ProtobufLanguage
impl Ord for ProtobufLanguage
Source§fn cmp(&self, other: &ProtobufLanguage) -> Ordering
fn cmp(&self, other: &ProtobufLanguage) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'config> Parser<ProtobufLanguage> for ProtobufParser<'config>
impl<'config> Parser<ProtobufLanguage> for ProtobufParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<ProtobufLanguage>,
) -> ParseOutput<'a, ProtobufLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<ProtobufLanguage>, ) -> ParseOutput<'a, ProtobufLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for ProtobufLanguage
impl PartialEq for ProtobufLanguage
Source§impl PartialOrd for ProtobufLanguage
impl PartialOrd for ProtobufLanguage
impl Copy for ProtobufLanguage
impl Eq for ProtobufLanguage
impl StructuralPartialEq for ProtobufLanguage
Auto Trait Implementations§
impl Freeze for ProtobufLanguage
impl RefUnwindSafe for ProtobufLanguage
impl Send for ProtobufLanguage
impl Sync for ProtobufLanguage
impl Unpin for ProtobufLanguage
impl UnwindSafe for ProtobufLanguage
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