Trait tailwind_css::TailwindInstance
source · [−]pub trait TailwindInstance: Display {
fn attributes(&self, ctx: &TailwindBuilder) -> CssAttributes;
fn id(&self) -> String { ... }
fn inlineable(&self) -> bool { ... }
fn boxed(self) -> Box<dyn TailwindInstance>
where
Self: Sized,
Self: 'static,
{ ... }
fn selectors(&self, ctx: &TailwindBuilder) -> String { ... }
fn additional(&self, ctx: &TailwindBuilder) -> String { ... }
}
Required Methods
sourcefn attributes(&self, ctx: &TailwindBuilder) -> CssAttributes
fn attributes(&self, ctx: &TailwindBuilder) -> CssAttributes
Attributes in css
Provided Methods
sourcefn inlineable(&self) -> bool
fn inlineable(&self) -> bool
used to deduplication and marking
sourcefn boxed(self) -> Box<dyn TailwindInstance>where
Self: Sized,
Self: 'static,
fn boxed(self) -> Box<dyn TailwindInstance>where
Self: Sized,
Self: 'static,
New tailwind instance
sourcefn selectors(&self, ctx: &TailwindBuilder) -> String
fn selectors(&self, ctx: &TailwindBuilder) -> String
Custom selector name
sourcefn additional(&self, ctx: &TailwindBuilder) -> String
fn additional(&self, ctx: &TailwindBuilder) -> String
Additional css in bundle
Trait Implementations
sourceimpl Debug for Box<dyn TailwindInstance>
impl Debug for Box<dyn TailwindInstance>
sourceimpl Hash for Box<dyn TailwindInstance>
impl Hash for Box<dyn TailwindInstance>
sourceimpl Ord for Box<dyn TailwindInstance>
impl Ord for Box<dyn TailwindInstance>
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Box<dyn TailwindInstance + 'static, Global>> for Box<dyn TailwindInstance>
impl PartialEq<Box<dyn TailwindInstance + 'static, Global>> for Box<dyn TailwindInstance>
sourceimpl PartialOrd<Box<dyn TailwindInstance + 'static, Global>> for Box<dyn TailwindInstance>
impl PartialOrd<Box<dyn TailwindInstance + 'static, Global>> for Box<dyn TailwindInstance>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Box<dyn TailwindInstance>
Implementors
impl TailwindInstance for TailWindGrow
impl TailwindInstance for TailWindOrder
impl TailwindInstance for TailWindShrink
impl TailwindInstance for TailwindAccentColor
impl TailwindInstance for TailwindAlign
impl TailwindInstance for TailwindAnimate
impl TailwindInstance for TailwindAppearance
impl TailwindInstance for TailwindAspect
impl TailwindInstance for TailwindBackgroundAttachment
impl TailwindInstance for TailwindBackgroundBlend
impl TailwindInstance for TailwindBackgroundClip
impl TailwindInstance for TailwindBackgroundColor
impl TailwindInstance for TailwindBackgroundImage
impl TailwindInstance for TailwindBackgroundOrigin
impl TailwindInstance for TailwindBackgroundPosition
impl TailwindInstance for TailwindBackgroundRepeat
impl TailwindInstance for TailwindBackgroundSize
impl TailwindInstance for TailwindBasis
impl TailwindInstance for TailwindBlend
impl TailwindInstance for TailwindBlur
impl TailwindInstance for TailwindBorderCollapse
impl TailwindInstance for TailwindBorderColor
impl TailwindInstance for TailwindBorderStyle
impl TailwindInstance for TailwindBottom
impl TailwindInstance for TailwindBoxDecoration
impl TailwindInstance for TailwindBoxSizing
impl TailwindInstance for TailwindBreak
impl TailwindInstance for TailwindBreakAfter
impl TailwindInstance for TailwindBreakBefore
impl TailwindInstance for TailwindBreakInside
impl TailwindInstance for TailwindBrightness
impl TailwindInstance for TailwindCaretColor
impl TailwindInstance for TailwindClear
impl TailwindInstance for TailwindColumn
impl TailwindInstance for TailwindColumns
impl TailwindInstance for TailwindContainer
.container {