Trait tailwind_css::TailwindInstance
source · [−]pub trait TailwindInstance: Display {
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 attributes(&self, ctx: &TailwindBuilder) -> BTreeSet<CssAttribute> { ... }
fn write_css(&self, f: &mut dyn Write, ctx: &TailwindBuilder) -> Result<()> { ... }
fn build_css(&self, ctx: &TailwindBuilder) { ... }
}
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 selectors(&self, ctx: &TailwindBuilder) -> String
fn selectors(&self, ctx: &TailwindBuilder) -> String
const ID: &’static str;
fn attributes(&self, ctx: &TailwindBuilder) -> BTreeSet<CssAttribute>
fn attributes(&self, ctx: &TailwindBuilder) -> BTreeSet<CssAttribute>
write css to buffers
fn build_css(&self, ctx: &TailwindBuilder)
fn build_css(&self, ctx: &TailwindBuilder)
Build css ast