pub trait MaybeIntoTailwindClass<'a> {
// Required method
fn to_tailwind_class(&'a self) -> Option<&'a str>;
}Expand description
Used to extract a &str from a type
Implement this trait for your type to use it with the [tw_join!] and [tw_merge!] macros
Required Methods§
sourcefn to_tailwind_class(&'a self) -> Option<&'a str>
fn to_tailwind_class(&'a self) -> Option<&'a str>
Attempt to extract a Tailwind class