Skip to main content

StaticClass

Type Alias StaticClass 

Source
pub type StaticClass = Class<Unescaped<PromotedStr>>;
Expand description

The type of a class list built from string literals alone.

Use this type to store a literal class! value in a constant:

use topcoat::view::{StaticClass, class};

const BUTTON: StaticClass = class!("btn btn-lg rounded");

Aliased Type§

pub struct StaticClass(pub Unescaped<PromotedStr>);

Tuple Fields§

§0: Unescaped<PromotedStr>