pub enum Plugin {
Show 96 variants Position(Position), Visibility(Visibility), Display(Display), TextTransform(TextTransform), TextDecoration(TextDecoration), Border(Option<Border>), Rounded(Option<Rounded>), Min(Min), Max(Max), List(List), H, W, P, Px, Pl, Auto(Auto), Pr, LineClamp, Py, Pt, VerticalAlign, Pb, Content, M, Mx, My, Ml, Backdrop(Backdrop), Stroke, Mr, Mt, TransformOrigin, Mb, Z, Text, Bg, Font, Fill, Shadow, Transition, Placeholder, Inset(Option<Inset>), Delay, Snap(Snap), Duration, Divide(Option<Divide>), Rotate, Appearance, Truncate, Animate, Pointer, Aspect, Ease, Order, Whitespace(Whitespace), From, To, Outline, Mix, Flex(Option<Flex>), Grid(Option<Grid>), Col(Option<Col>), Row(Option<Row>), Float, Grow, Shrink, Basis, Object(Object), Justify, Items, Leading, Gap(Option<Gap>), Cursor, Antialiased, Scroll(Scroll), Scale, Box, Select, Overflow(Option<Overflow>), Top, Bottom, Left, Right, AlignSelf(AlignSelf), Translate(Translate), Tracking, Invert, Space, Transform, Opacity, Italic, Blur, Ring, Sr, Prose(Option<Prose>), Not(Not),
}
Expand description

The plugin represents the core command the tailwind parser is looking for. For example, the text plugin is represented by the Text variant.

Variants§

§

Position(Position)

Transparent plugins do not add to the class name.

Example: ‘sticky’, ‘static’, ‘fixed’

§

Visibility(Visibility)

§

Display(Display)

§

TextTransform(TextTransform)

§

TextDecoration(TextDecoration)

§

Border(Option<Border>)

Border has an optional sub-item

Example: ‘border’, ‘border-t’, ‘border-b’, ‘border-l’, ‘border-r’

§

Rounded(Option<Rounded>)

§

Min(Min)

§

Max(Max)

§

List(List)

§

H

§

W

§

P

§

Px

§

Pl

§

Auto(Auto)

§

Pr

§

LineClamp

§

Py

§

Pt

§

VerticalAlign

§

Pb

§

Content

§

M

§

Mx

§

My

§

Ml

§

Backdrop(Backdrop)

§

Stroke

§

Mr

§

Mt

§

TransformOrigin

§

Mb

§

Z

§

Text

§

Bg

§

Font

§

Fill

§

Shadow

§

Transition

§

Placeholder

§

Inset(Option<Inset>)

§

Delay

§

Snap(Snap)

§

Duration

§

Divide(Option<Divide>)

§

Rotate

§

Appearance

§

Truncate

§

Animate

§

Pointer

§

Aspect

§

Ease

§

Order

§

Whitespace(Whitespace)

§

From

§

To

§

Outline

§

Mix

§

Flex(Option<Flex>)

§

Grid(Option<Grid>)

§

Col(Option<Col>)

§

Row(Option<Row>)

§

Float

§

Grow

§

Shrink

§

Basis

§

Object(Object)

§

Justify

§

Items

§

Leading

§

Gap(Option<Gap>)

§

Cursor

§

Antialiased

§

Scroll(Scroll)

§

Scale

§

Box

§

Select

§

Overflow(Option<Overflow>)

§

Top

§

Bottom

§

Left

§

Right

§

AlignSelf(AlignSelf)

§

Translate(Translate)

§

Tracking

§

Invert

§

Space

§

Transform

§

Opacity

§

Italic

§

Blur

§

Ring

§

Sr

§

Prose(Option<Prose>)

§

Not(Not)

Implementations§

At a hight level, this algorithm:

  1. take a segment of the input
  2. if it has a sub-segment, attempt to parse a plugin from the two
  3. if it doesn’t have a sub-segment, attempt to parse a plugin from the segment
  4. if that plugin has subcommands, attempt to parse a subcommand from the sub-segment

this code is ugly

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more