pub struct VampireLanguage {
pub comment_config: CommentConfig,
pub string_config: StringConfig,
pub whitespace_config: WhitespaceConfig,
}Fields§
§comment_config: CommentConfig§string_config: StringConfig§whitespace_config: WhitespaceConfigTrait Implementations§
Source§impl<'config> Builder<VampireLanguage> for VampireBuilder<'config>
impl<'config> Builder<VampireLanguage> for VampireBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl BuilderCache<VampireLanguage>,
) -> BuildOutput<VampireLanguage>
fn build<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl BuilderCache<VampireLanguage>, ) -> BuildOutput<VampireLanguage>
Builds the structure from the source text.
Source§impl Clone for VampireLanguage
impl Clone for VampireLanguage
Source§fn clone(&self) -> VampireLanguage
fn clone(&self) -> VampireLanguage
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 VampireLanguage
impl Debug for VampireLanguage
Source§impl Default for VampireLanguage
impl Default for VampireLanguage
Source§impl<'de> Deserialize<'de> for VampireLanguage
impl<'de> Deserialize<'de> for VampireLanguage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Language for VampireLanguage
impl Language for VampireLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = VampireSyntaxKind
type TokenType = VampireSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = VampireSyntaxKind
type ElementType = VampireSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§type TypedRoot = VampireRoot
type TypedRoot = VampireRoot
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<VampireLanguage> for VampireLexer<'config>
impl<'config> Lexer<VampireLanguage> for VampireLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
text: &'a S,
_edits: &[TextEdit],
_cache: &'a mut impl LexerCache<VampireLanguage>,
) -> LexOutput<VampireLanguage>
fn lex<'a, S: Source + ?Sized>( &self, text: &'a S, _edits: &[TextEdit], _cache: &'a mut impl LexerCache<VampireLanguage>, ) -> LexOutput<VampireLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<VampireLanguage> for VampireParser<'config>
impl<'config> Parser<VampireLanguage> for VampireParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<VampireLanguage>,
) -> ParseOutput<'a, VampireLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<VampireLanguage>, ) -> ParseOutput<'a, VampireLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for VampireLanguage
impl PartialEq for VampireLanguage
Source§impl Serialize for VampireLanguage
impl Serialize for VampireLanguage
impl Eq for VampireLanguage
impl StructuralPartialEq for VampireLanguage
Auto Trait Implementations§
impl Freeze for VampireLanguage
impl RefUnwindSafe for VampireLanguage
impl Send for VampireLanguage
impl Sync for VampireLanguage
impl Unpin for VampireLanguage
impl UnwindSafe for VampireLanguage
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