pub struct TailwindLanguage {
pub allow_raw_blocks: bool,
pub allow_custom_tags: bool,
pub mode: TailwindMode,
}Expand description
Tailwind 语言定义
Fields§
§allow_raw_blocks: bool§mode: TailwindModeImplementations§
Source§impl TailwindLanguage
impl TailwindLanguage
pub fn new() -> Self
pub fn standard() -> Self
pub fn lexer(&self) -> TailwindLexer<'_>
pub fn parser(&self) -> TailwindParser<'_>
Trait Implementations§
Source§impl<'config> Builder<TailwindLanguage> for TailwindBuilder<'config>
impl<'config> Builder<TailwindLanguage> for TailwindBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<TailwindLanguage>,
) -> BuildOutput<TailwindLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<TailwindLanguage>, ) -> BuildOutput<TailwindLanguage>
Builds the structure from the source text.
Source§impl Clone for TailwindLanguage
impl Clone for TailwindLanguage
Source§fn clone(&self) -> TailwindLanguage
fn clone(&self) -> TailwindLanguage
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 TailwindLanguage
impl Debug for TailwindLanguage
Source§impl Default for TailwindLanguage
impl Default for TailwindLanguage
Source§fn default() -> TailwindLanguage
fn default() -> TailwindLanguage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TailwindLanguage
impl<'de> Deserialize<'de> for TailwindLanguage
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 TailwindLanguage
impl Hash for TailwindLanguage
Source§impl Language for TailwindLanguage
impl Language for TailwindLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Markup
const CATEGORY: LanguageCategory = LanguageCategory::Markup
The category of the language.
Source§type TokenType = TailwindSyntaxKind
type TokenType = TailwindSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = TailwindSyntaxKind
type ElementType = TailwindSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§type TypedRoot = TailwindRoot
type TypedRoot = TailwindRoot
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<TailwindLanguage> for TailwindLexer<'config>
impl<'config> Lexer<TailwindLanguage> for TailwindLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<TailwindLanguage>,
) -> LexOutput<TailwindLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<TailwindLanguage>, ) -> LexOutput<TailwindLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<TailwindLanguage> for TailwindParser<'config>
impl<'config> Parser<TailwindLanguage> for TailwindParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<TailwindLanguage>,
) -> ParseOutput<'a, TailwindLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<TailwindLanguage>, ) -> ParseOutput<'a, TailwindLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for TailwindLanguage
impl PartialEq for TailwindLanguage
Source§impl Serialize for TailwindLanguage
impl Serialize for TailwindLanguage
impl Copy for TailwindLanguage
impl Eq for TailwindLanguage
impl StructuralPartialEq for TailwindLanguage
Auto Trait Implementations§
impl Freeze for TailwindLanguage
impl RefUnwindSafe for TailwindLanguage
impl Send for TailwindLanguage
impl Sync for TailwindLanguage
impl Unpin for TailwindLanguage
impl UnwindSafe for TailwindLanguage
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