Enum tailwind_parse::Plugin 
source · pub enum Plugin {
Show 88 variants
    Position(Position),
    Visibility(Visibility),
    Display(Display),
    TextTransform(TextTransform),
    TextDecoration(TextDecoration),
    Border(Option<Border>),
    Rounded(Option<Rounded>),
    Min(Min),
    Max(Max),
    H,
    W,
    P,
    Px,
    Pl,
    Pr,
    LineClamp,
    Py,
    Pt,
    VerticalAlign,
    Pb,
    Content,
    M,
    Mx,
    My,
    Ml,
    Mr,
    Mt,
    TransformOrigin,
    Mb,
    Z,
    Text,
    Bg,
    Font,
    Fill,
    Shadow,
    Transition,
    Placeholder,
    Inset(Option<Inset>),
    Delay,
    Duration,
    Divide(Option<Divide>),
    Rotate,
    Appearance,
    Truncate,
    Animate,
    Pointer,
    Ease,
    Order,
    Whitespace(Whitespace),
    From,
    To,
    Outline,
    Mix,
    Flex(Option<Flex>),
    Grid(Option<Grid>),
    Col,
    Row,
    Float,
    Grow,
    Shrink,
    Basis,
    Object(Object),
    Justify,
    Items,
    Leading,
    Gap(Option<Gap>),
    Cursor,
    Scale,
    Box,
    Select,
    Overflow,
    Top,
    Bottom,
    Left,
    Right,
    AlignSelf(AlignSelf),
    Translate(Translate),
    Tracking,
    Invert,
    Space,
    Transform,
    Opacity,
    Italic,
    Blur,
    Ring,
    Sr,
    Prose(Option<Prose>),
    Not(Not),
}Variants§
Position(Position)
Visibility(Visibility)
Display(Display)
TextTransform(TextTransform)
TextDecoration(TextDecoration)
Border(Option<Border>)
Rounded(Option<Rounded>)
Min(Min)
Max(Max)
H
W
P
Px
Pl
Pr
LineClamp
Py
Pt
VerticalAlign
Pb
Content
M
Mx
My
Ml
Mr
Mt
TransformOrigin
Mb
Z
Text
Bg
Font
Fill
Shadow
Transition
Placeholder
Inset(Option<Inset>)
Delay
Duration
Divide(Option<Divide>)
Rotate
Appearance
Truncate
Animate
Pointer
Ease
Order
Whitespace(Whitespace)
From
To
Outline
Mix
Flex(Option<Flex>)
Grid(Option<Grid>)
Col
Row
Float
Grow
Shrink
Basis
Object(Object)
Justify
Items
Leading
Gap(Option<Gap>)
Cursor
Scale
Box
Select
Overflow
Top
Bottom
Left
Right
AlignSelf(AlignSelf)
Translate(Translate)
Tracking
Invert
Space
Transform
Opacity
Italic
Blur
Ring
Sr
Prose(Option<Prose>)
Not(Not)
Implementations§
source§impl<'a> Plugin
 
impl<'a> Plugin
sourcepub fn parse(s: NomSpan<'a>) -> IResult<NomSpan<'a>, Self, Error<NomSpan<'a>>>
 
pub fn parse(s: NomSpan<'a>) -> IResult<NomSpan<'a>, Self, Error<NomSpan<'a>>>
At a hight level, this algorithm:
- take a segment of the input
 - if it has a sub-segment, attempt to parse a plugin from the two
 - if it doesn’t have a sub-segment, attempt to parse a plugin from the segment
 - if that plugin has subcommands, attempt to parse a subcommand from the sub-segment
 
this code is ugly