v0.2.0
What's Changed
Variant API Improvements by @nicoburniske in #17
MaybeIntoTailwindClass
trait is now replaced byAsTailwindClass
- Removes support for
Option
intw_join!
andtw_merge!
- Removes support for
TwVariant
macro will force implementCopy
andClone
- Remove impl of
IntoTailwindClass
forTwVariant
in favor ofAsTailwindClass
because we don't want to needlessly allocate strings- Enables usage with
tw_join!
andtw_merge!
macros
- Enables usage with
- Improved
TwClass
builder pattern.builder()
will create builder instance (instead ofvariant()
which was confusing).build()
(NEW) will convert builder instance intoTwClass
type- From Builder -> T
- From T -> Builder
- Builder will be Copy and Clone
TwClass
struct can be Copy and Clone, and is not implemented automatically. User can decide by applying derive macros themselves.
Full Changelog: v0.1.1...v0.2.0