Trait tailwind_css::TailwindInstance
source · [−]pub trait TailwindInstance: Display {
fn attributes(&self, ctx: &TailwindBuilder) -> BTreeSet<CssAttribute>;
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
fn attributes(&self, ctx: &TailwindBuilder) -> BTreeSet<CssAttribute>
fn attributes(&self, ctx: &TailwindBuilder) -> BTreeSet<CssAttribute>
Attributes in css
Provided methods
fn inlineable(&self) -> bool
fn inlineable(&self) -> bool
used to deduplication and marking
fn boxed(self) -> Box<dyn TailwindInstance> where
Self: Sized,
Self: 'static,
fn boxed(self) -> Box<dyn TailwindInstance> where
Self: Sized,
Self: 'static,
New tailwind instance
fn selectors(&self, ctx: &TailwindBuilder) -> String
fn selectors(&self, ctx: &TailwindBuilder) -> String
Custom selector name
fn additional(&self, ctx: &TailwindBuilder) -> String
fn additional(&self, ctx: &TailwindBuilder) -> String
Additional css in bundle