pub struct DjangoLanguage {
pub strict_mode: bool,
pub allow_custom_tags: bool,
}Expand description
Django 模板语言配置
Fields§
§strict_mode: bool是否启用严格模式
是否允许自定义标签
Trait Implementations§
Source§impl Clone for DjangoLanguage
impl Clone for DjangoLanguage
Source§fn clone(&self) -> DjangoLanguage
fn clone(&self) -> DjangoLanguage
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 DjangoLanguage
impl Debug for DjangoLanguage
Source§impl Default for DjangoLanguage
impl Default for DjangoLanguage
Source§impl Language for DjangoLanguage
impl Language for DjangoLanguage
Source§type SyntaxKind = DjangoSyntaxKind
type SyntaxKind = DjangoSyntaxKind
The kind kind type used to represent different kind and node types in the language. Read more
Source§type TypedRoot = DjangoRoot
type TypedRoot = DjangoRoot
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<DjangoLanguage> for DjangoLexer<'config>
impl<'config> Lexer<DjangoLanguage> for DjangoLexer<'config>
Source§fn lex_incremental(
&self,
source: impl Source,
_changed: usize,
_cache: IncrementalCache<'_, DjangoLanguage>,
) -> LexOutput<DjangoLanguage>
fn lex_incremental( &self, source: impl Source, _changed: usize, _cache: IncrementalCache<'_, DjangoLanguage>, ) -> LexOutput<DjangoLanguage>
Tokenizes source text using an existing cache for incremental parsing. Read more
Source§fn lex(
&self,
source: impl Source,
) -> OakDiagnostics<Vec<Token<<L as Language>::SyntaxKind>>>
fn lex( &self, source: impl Source, ) -> OakDiagnostics<Vec<Token<<L as Language>::SyntaxKind>>>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<DjangoLanguage> for DjangoParser<'config>
impl<'config> Parser<DjangoLanguage> for DjangoParser<'config>
Source§fn parse_incremental(
&self,
source: impl Source,
changed: usize,
cache: IncrementalCache<'_, DjangoLanguage>,
) -> OakDiagnostics<Arc<GreenNode<DjangoSyntaxKind>>>
fn parse_incremental( &self, source: impl Source, changed: usize, cache: IncrementalCache<'_, DjangoLanguage>, ) -> OakDiagnostics<Arc<GreenNode<DjangoSyntaxKind>>>
Parses source text incrementally using an existing cache. Read more
Source§fn parse(
&self,
text: impl Source,
) -> OakDiagnostics<Arc<GreenNode<<L as Language>::SyntaxKind>>>
fn parse( &self, text: impl Source, ) -> OakDiagnostics<Arc<GreenNode<<L as Language>::SyntaxKind>>>
Parses source text into a kind tree. Read more
Auto Trait Implementations§
impl Freeze for DjangoLanguage
impl RefUnwindSafe for DjangoLanguage
impl Send for DjangoLanguage
impl Sync for DjangoLanguage
impl Unpin for DjangoLanguage
impl UnwindSafe for DjangoLanguage
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