pub struct FortranLanguage {
pub fortran_2008: bool,
pub fortran_2018: bool,
pub fixed_format: bool,
pub openmp: bool,
pub coarray: bool,
}Expand description
Fortran 语言配置
Fields§
§fortran_2008: bool是否启用 Fortran 2008
fortran_2018: bool是否启用 Fortran 2018
fixed_format: bool是否启用固定格式(Fortran 77 风格)
openmp: bool是否启用 OpenMP 支持
coarray: bool是否启用 Coarray 支持
Implementations§
Trait Implementations§
Source§impl Clone for FortranLanguage
impl Clone for FortranLanguage
Source§fn clone(&self) -> FortranLanguage
fn clone(&self) -> FortranLanguage
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 FortranLanguage
impl Debug for FortranLanguage
Source§impl Default for FortranLanguage
impl Default for FortranLanguage
Source§impl<'de> Deserialize<'de> for FortranLanguage
impl<'de> Deserialize<'de> for FortranLanguage
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 FortranLanguage
impl Hash for FortranLanguage
Source§impl Language for FortranLanguage
impl Language for FortranLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = FortranSyntaxKind
type TokenType = FortranSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = FortranSyntaxKind
type ElementType = FortranSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<FortranLanguage> for FortranLexer<'config>
impl<'config> Lexer<FortranLanguage> for FortranLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<FortranLanguage>,
) -> LexOutput<FortranLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<FortranLanguage>, ) -> LexOutput<FortranLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<FortranLanguage> for FortranParser<'config>
impl<'config> Parser<FortranLanguage> for FortranParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<FortranLanguage>,
) -> ParseOutput<'a, FortranLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<FortranLanguage>, ) -> ParseOutput<'a, FortranLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for FortranLanguage
impl PartialEq for FortranLanguage
Source§impl Serialize for FortranLanguage
impl Serialize for FortranLanguage
impl Copy for FortranLanguage
impl Eq for FortranLanguage
impl StructuralPartialEq for FortranLanguage
Auto Trait Implementations§
impl Freeze for FortranLanguage
impl RefUnwindSafe for FortranLanguage
impl Send for FortranLanguage
impl Sync for FortranLanguage
impl Unpin for FortranLanguage
impl UnwindSafe for FortranLanguage
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