pub struct DLanguage {
pub d2_features: bool,
pub inline_asm: bool,
pub contracts: bool,
}Expand description
Language definition for D programming language
Fields§
§d2_features: boolWhether to enable D2 features
inline_asm: boolWhether to allow inline assembly
contracts: boolWhether to enable contract programming
Implementations§
Trait Implementations§
Source§impl Language for DLanguage
impl Language for DLanguage
Source§type SyntaxKind = DSyntaxKind
type SyntaxKind = DSyntaxKind
The kind kind type used to represent different kind and node types in the language. Read more
Source§impl<'config> Lexer<DLanguage> for DLexer<'config>
impl<'config> Lexer<DLanguage> for DLexer<'config>
Source§fn lex(&self, source: impl Source) -> LexOutput<DLanguage>
fn lex(&self, source: impl Source) -> LexOutput<DLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§fn lex_incremental(
&self,
source: impl Source,
_old_tree_len: usize,
_cache: IncrementalCache<'_, DLanguage>,
) -> LexOutput<DLanguage>
fn lex_incremental( &self, source: impl Source, _old_tree_len: usize, _cache: IncrementalCache<'_, DLanguage>, ) -> LexOutput<DLanguage>
Tokenizes source text using an existing cache for incremental parsing. Read more
Auto Trait Implementations§
impl Freeze for DLanguage
impl RefUnwindSafe for DLanguage
impl Send for DLanguage
impl Sync for DLanguage
impl Unpin for DLanguage
impl UnwindSafe for DLanguage
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