pub struct CssLanguage;Trait Implementations§
Source§impl Clone for CssLanguage
impl Clone for CssLanguage
Source§fn clone(&self) -> CssLanguage
fn clone(&self) -> CssLanguage
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 CssLanguage
impl Debug for CssLanguage
Source§impl Default for CssLanguage
impl Default for CssLanguage
Source§fn default() -> CssLanguage
fn default() -> CssLanguage
Returns the “default value” for a type. Read more
Source§impl Hash for CssLanguage
impl Hash for CssLanguage
Source§impl Language for CssLanguage
impl Language for CssLanguage
Source§type TokenType = CssTokenType
type TokenType = CssTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = CssElementType
type ElementType = CssElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§type TypedRoot = ()
type TypedRoot = ()
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§impl<'config> Lexer<CssLanguage> for CssLexer<'config>
impl<'config> Lexer<CssLanguage> for CssLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<CssLanguage>,
) -> LexOutput<CssLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<CssLanguage>, ) -> LexOutput<CssLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl Ord for CssLanguage
impl Ord for CssLanguage
Source§fn cmp(&self, other: &CssLanguage) -> Ordering
fn cmp(&self, other: &CssLanguage) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'config> Parser<CssLanguage> for CssParser<'config>
impl<'config> Parser<CssLanguage> for CssParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<CssLanguage>,
) -> ParseOutput<'a, CssLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<CssLanguage>, ) -> ParseOutput<'a, CssLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for CssLanguage
impl PartialEq for CssLanguage
Source§impl PartialOrd for CssLanguage
impl PartialOrd for CssLanguage
impl Copy for CssLanguage
impl Eq for CssLanguage
impl StructuralPartialEq for CssLanguage
Auto Trait Implementations§
impl Freeze for CssLanguage
impl RefUnwindSafe for CssLanguage
impl Send for CssLanguage
impl Sync for CssLanguage
impl Unpin for CssLanguage
impl UnwindSafe for CssLanguage
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