pub struct ValaLanguage {}Expand description
Vala 语言定义
Implementations§
Source§impl ValaLanguage
impl ValaLanguage
Trait Implementations§
Source§impl<'config> Builder<ValaLanguage> for ValaBuilder<'config>
impl<'config> Builder<ValaLanguage> for ValaBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
text: &S,
edits: &[TextEdit],
cache: &'a mut impl BuilderCache<ValaLanguage>,
) -> BuildOutput<ValaLanguage>
fn build<'a, S: Source + ?Sized>( &self, text: &S, edits: &[TextEdit], cache: &'a mut impl BuilderCache<ValaLanguage>, ) -> BuildOutput<ValaLanguage>
Builds the structure from the source text.
Source§impl Clone for ValaLanguage
impl Clone for ValaLanguage
Source§fn clone(&self) -> ValaLanguage
fn clone(&self) -> ValaLanguage
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 ValaLanguage
impl Debug for ValaLanguage
Source§impl Default for ValaLanguage
impl Default for ValaLanguage
Source§fn default() -> ValaLanguage
fn default() -> ValaLanguage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValaLanguage
impl<'de> Deserialize<'de> for ValaLanguage
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 Hash for ValaLanguage
impl Hash for ValaLanguage
Source§impl Language for ValaLanguage
impl Language for ValaLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = ValaSyntaxKind
type TokenType = ValaSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = ValaSyntaxKind
type ElementType = ValaSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<ValaLanguage> for ValaLexer<'config>
impl<'config> Lexer<ValaLanguage> for ValaLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<ValaLanguage>,
) -> LexOutput<ValaLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<ValaLanguage>, ) -> LexOutput<ValaLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<ValaLanguage> for ValaParser<'config>
impl<'config> Parser<ValaLanguage> for ValaParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<ValaLanguage>,
) -> ParseOutput<'a, ValaLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<ValaLanguage>, ) -> ParseOutput<'a, ValaLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for ValaLanguage
impl PartialEq for ValaLanguage
Source§impl Serialize for ValaLanguage
impl Serialize for ValaLanguage
impl Copy for ValaLanguage
impl Eq for ValaLanguage
impl StructuralPartialEq for ValaLanguage
Auto Trait Implementations§
impl Freeze for ValaLanguage
impl RefUnwindSafe for ValaLanguage
impl Send for ValaLanguage
impl Sync for ValaLanguage
impl Unpin for ValaLanguage
impl UnwindSafe for ValaLanguage
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