Enum tailwind_parse::Plugin
source · pub enum Plugin {
Show 79 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,
Py,
Pt,
Pb,
M,
Mx,
My,
Ml,
Mr,
Mt,
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,
Grow,
Shrink,
Basis,
Object(Object),
Justify,
Items,
Leading,
Gap(Option<Gap>),
Cursor,
Scale,
Box,
Select,
Overflow,
Top,
Bottom,
Left,
Right,
AlignSelf(AlignSelf),
Translate,
Tracking,
Invert,
Space,
Transform,
Opacity,
Blur,
Ring,
Sr,
}
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
Py
Pt
Pb
M
Mx
My
Ml
Mr
Mt
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
Grow
Shrink
Basis
Object(Object)
Justify
Items
Leading
Gap(Option<Gap>)
Cursor
Scale
Box
Select
Overflow
Top
Bottom
Left
Right
AlignSelf(AlignSelf)
Translate
Tracking
Invert
Space
Transform
Opacity
Blur
Ring
Sr
Implementations
sourceimpl<'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:
- attempts to parse a valid plugin from the input
- if it fails, checks to see if the input is a ‘rootless subcommand’ (ie, one where the command on its own is not valid)
- if there is a subcommand, it attempts to parse the subcommand
- if the subcommand fails to parse, it falls back to the first discovered error
sourceimpl Plugin
impl Plugin
pub const fn max_dashes() -> usize
pub fn has_subcommand(&self) -> bool
pub fn is_rootless_subcommand(name: &str) -> bool
Trait Implementations
impl Copy for Plugin
impl Eq for Plugin
impl StructuralEq for Plugin
impl StructuralPartialEq for Plugin
Auto Trait Implementations
impl RefUnwindSafe for Plugin
impl Send for Plugin
impl Sync for Plugin
impl Unpin for Plugin
impl UnwindSafe for Plugin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more