pub struct PurescriptLanguage {
pub config: (),
}Expand description
PureScript 语言实现
Fields§
§config: ()语言配置
Trait Implementations§
Source§impl Clone for PurescriptLanguage
impl Clone for PurescriptLanguage
Source§fn clone(&self) -> PurescriptLanguage
fn clone(&self) -> PurescriptLanguage
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 PurescriptLanguage
impl Debug for PurescriptLanguage
Source§impl Default for PurescriptLanguage
impl Default for PurescriptLanguage
Source§impl Hash for PurescriptLanguage
impl Hash for PurescriptLanguage
Source§impl Language for PurescriptLanguage
impl Language for PurescriptLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = PurescriptSyntaxKind
type TokenType = PurescriptSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = PurescriptSyntaxKind
type ElementType = PurescriptSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<PurescriptLanguage> for PurescriptLexer<'config>
impl<'config> Lexer<PurescriptLanguage> for PurescriptLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<PurescriptLanguage>,
) -> LexOutput<PurescriptLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<PurescriptLanguage>, ) -> LexOutput<PurescriptLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<PurescriptLanguage> for PurescriptParser<'config>
impl<'config> Parser<PurescriptLanguage> for PurescriptParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<PurescriptLanguage>,
) -> ParseOutput<'a, PurescriptLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<PurescriptLanguage>, ) -> ParseOutput<'a, PurescriptLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for PurescriptLanguage
impl PartialEq for PurescriptLanguage
impl Copy for PurescriptLanguage
impl Eq for PurescriptLanguage
impl StructuralPartialEq for PurescriptLanguage
Auto Trait Implementations§
impl Freeze for PurescriptLanguage
impl RefUnwindSafe for PurescriptLanguage
impl Send for PurescriptLanguage
impl Sync for PurescriptLanguage
impl Unpin for PurescriptLanguage
impl UnwindSafe for PurescriptLanguage
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