logo
pub struct CssBundle { /* private fields */ }
Expand description

A collection of css objects

Separate or merge as needed

Implementations

insert new css instance to the html tag

Try inline styles, keep the class name if that fails.

Returns
  • css classes
<img class="tw-1 tw-2"/>

Try inline styles, keep the class name if that fails.

Returns
  • .0: css classes rest, maybe empty
  • .1: css style
<img class="not-inlinable" style="k1:v1;k2:v2;"/>
Returns
  • scoped class name
<img class="_b2JmdXNjYXRl"/>
Returns
  • data name without value
<img data-tw-b2JmdXNjYXRl/>
[data-tw-b2JmdXNjYXRl] {

}
Returns
  • scoped class name
<img data-tw="b2JmdXNjYXRl"/>
[data-tw="b2JmdXNjYXRl"] {

}

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.