pub struct TailwindVariantMarker { /* private fields */ }
Expand description
§Variant Markers
These classes don’t apply styles themselves; their sole purpose is to mark an element so it can be targeted or referenced by a variant on another element.
Examples:
peer
is used by elements with the peer variant, to select a siblinggroup
is used on parent elements of the group variants, to select an ancestor
https://v3.tailwindcss.com/docs/hover-focus-and-other-states#styling-based-on-parent-state https://v3.tailwindcss.com/docs/hover-focus-and-other-states#styling-based-on-sibling-state
Implementations§
Source§impl TailwindVariantMarker
impl TailwindVariantMarker
pub fn parse(pattern: &[&str], arbitrary: &TailwindArbitrary) -> Result<Self>
pub fn check_valid(mode: &str) -> bool
Trait Implementations§
Source§impl Debug for TailwindVariantMarker
impl Debug for TailwindVariantMarker
Source§impl Display for TailwindVariantMarker
impl Display for TailwindVariantMarker
Source§impl TailwindInstance for TailwindVariantMarker
impl TailwindInstance for TailwindVariantMarker
Source§fn attributes(&self, _: &TailwindBuilder) -> CssAttributes
fn attributes(&self, _: &TailwindBuilder) -> CssAttributes
Attributes in css
Source§fn inlineable(&self) -> bool
fn inlineable(&self) -> bool
used to deduplication and marking
Source§fn selectors(&self, ctx: &TailwindBuilder) -> String
fn selectors(&self, ctx: &TailwindBuilder) -> String
Custom selector name
Source§fn additional(&self, ctx: &TailwindBuilder) -> String
fn additional(&self, ctx: &TailwindBuilder) -> String
Additional css in bundle
Auto Trait Implementations§
impl Freeze for TailwindVariantMarker
impl RefUnwindSafe for TailwindVariantMarker
impl Send for TailwindVariantMarker
impl Sync for TailwindVariantMarker
impl Unpin for TailwindVariantMarker
impl UnwindSafe for TailwindVariantMarker
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more