pub struct FSharpLanguage {
pub fsharp_4_0: bool,
pub fsharp_4_1: bool,
pub fsharp_4_5: bool,
pub fsharp_5_0: bool,
pub fsharp_6_0: bool,
pub fsharp_7_0: bool,
pub computation_expressions: bool,
pub type_providers: bool,
pub async_workflows: bool,
pub query_expressions: bool,
}Expand description
F# 语言实现
Fields§
§fsharp_4_0: bool是否启用 F# 4.0
fsharp_4_1: bool是否启用 F# 4.1
fsharp_4_5: bool是否启用 F# 4.5
fsharp_5_0: bool是否启用 F# 5.0
fsharp_6_0: bool是否启用 F# 6.0
fsharp_7_0: bool是否启用 F# 7.0
computation_expressions: bool是否启用计算表达
type_providers: bool是否启用类型提供
async_workflows: bool是否启用异步工作
query_expressions: bool是否启用查询表达
Implementations§
Trait Implementations§
Source§impl Clone for FSharpLanguage
impl Clone for FSharpLanguage
Source§fn clone(&self) -> FSharpLanguage
fn clone(&self) -> FSharpLanguage
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 FSharpLanguage
impl Debug for FSharpLanguage
Source§impl Default for FSharpLanguage
impl Default for FSharpLanguage
Source§impl Language for FSharpLanguage
impl Language for FSharpLanguage
Source§type SyntaxKind = FSharpSyntaxKind
type SyntaxKind = FSharpSyntaxKind
The kind kind type used to represent different kind and node types in the language. Read more
Source§impl<'config> Lexer<FSharpLanguage> for FSharpLexer<'config>
impl<'config> Lexer<FSharpLanguage> for FSharpLexer<'config>
Source§fn lex_incremental(
&self,
source: impl Source,
changed: usize,
cache: IncrementalCache<'_, FSharpLanguage>,
) -> LexOutput<FSharpLanguage>
fn lex_incremental( &self, source: impl Source, changed: usize, cache: IncrementalCache<'_, FSharpLanguage>, ) -> LexOutput<FSharpLanguage>
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
Auto Trait Implementations§
impl Freeze for FSharpLanguage
impl RefUnwindSafe for FSharpLanguage
impl Send for FSharpLanguage
impl Sync for FSharpLanguage
impl Unpin for FSharpLanguage
impl UnwindSafe for FSharpLanguage
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