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§
Source§impl FSharpLanguage
impl FSharpLanguage
Sourcepub fn with_all_features(self) -> Self
pub fn with_all_features(self) -> Self
启用所F#
Sourcepub fn with_version(self, major: u8, minor: u8) -> Self
pub fn with_version(self, major: u8, minor: u8) -> Self
设置 F# 版本
Sourcepub fn with_computation_expressions(self, enabled: bool) -> Self
pub fn with_computation_expressions(self, enabled: bool) -> Self
启用计算表达
Sourcepub fn with_type_providers(self, enabled: bool) -> Self
pub fn with_type_providers(self, enabled: bool) -> Self
启用类型提供
Sourcepub fn with_async_workflows(self, enabled: bool) -> Self
pub fn with_async_workflows(self, enabled: bool) -> Self
启用异步工作
Sourcepub fn with_query_expressions(self, enabled: bool) -> Self
pub fn with_query_expressions(self, enabled: bool) -> Self
启用查询表达
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<'de> Deserialize<'de> for FSharpLanguage
impl<'de> Deserialize<'de> for FSharpLanguage
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 FSharpLanguage
impl Hash for FSharpLanguage
Source§impl Language for FSharpLanguage
impl Language for FSharpLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = FSharpSyntaxKind
type TokenType = FSharpSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = FSharpSyntaxKind
type ElementType = FSharpSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<FSharpLanguage> for FSharpLexer<'config>
impl<'config> Lexer<FSharpLanguage> for FSharpLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<FSharpLanguage>,
) -> LexOutput<FSharpLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<FSharpLanguage>, ) -> LexOutput<FSharpLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<FSharpLanguage> for FSharpParser<'config>
impl<'config> Parser<FSharpLanguage> for FSharpParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<FSharpLanguage>,
) -> ParseOutput<'a, FSharpLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<FSharpLanguage>, ) -> ParseOutput<'a, FSharpLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for FSharpLanguage
impl PartialEq for FSharpLanguage
Source§impl Serialize for FSharpLanguage
impl Serialize for FSharpLanguage
impl Copy for FSharpLanguage
impl Eq for FSharpLanguage
impl StructuralPartialEq for FSharpLanguage
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