pub struct NginxLanguage {
pub allow_extensions: bool,
pub strict_mode: bool,
}Fields§
§allow_extensions: bool是否允许扩展指令
strict_mode: bool是否严格模式
Implementations§
Trait Implementations§
Source§impl Clone for NginxLanguage
impl Clone for NginxLanguage
Source§fn clone(&self) -> NginxLanguage
fn clone(&self) -> NginxLanguage
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 NginxLanguage
impl Debug for NginxLanguage
Source§impl Default for NginxLanguage
impl Default for NginxLanguage
Source§impl Language for NginxLanguage
impl Language for NginxLanguage
Source§type SyntaxKind = NginxSyntaxKind
type SyntaxKind = NginxSyntaxKind
The kind kind type used to represent different kind and node types in the language. Read more
Source§impl<'config> Lexer<NginxLanguage> for NginxLexer<'config>
impl<'config> Lexer<NginxLanguage> for NginxLexer<'config>
Source§fn lex_incremental(
&self,
source: impl Source,
changed: usize,
cache: IncrementalCache<'_, NginxLanguage>,
) -> LexOutput<NginxLanguage>
fn lex_incremental( &self, source: impl Source, changed: usize, cache: IncrementalCache<'_, NginxLanguage>, ) -> LexOutput<NginxLanguage>
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 PartialEq for NginxLanguage
impl PartialEq for NginxLanguage
impl Copy for NginxLanguage
impl Eq for NginxLanguage
impl StructuralPartialEq for NginxLanguage
Auto Trait Implementations§
impl Freeze for NginxLanguage
impl RefUnwindSafe for NginxLanguage
impl Send for NginxLanguage
impl Sync for NginxLanguage
impl Unpin for NginxLanguage
impl UnwindSafe for NginxLanguage
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