ribir-v0.4.0-alpha.4
Pre-release
Pre-release
M-Adoo
released this
07 Aug 00:46
·
185 commits
to master
since this release
Features
-
core: Introduced
IntoWidget
andIntoChild
. (@M-Adoo #612)The
IntoWidget
trait allows for the conversion of any widget to the typeWidget
.
TheIntoChild
trait provides a way to convert a more general type into a child ofComposeChild
.
Fixed
core: The generation of a pipe widget from another pipe widget may potentially result in a crash. (#612, @M-Adoo)
Changed
-
core: Simplify the implementation of parent composition with child widgets. (#612, @M-Adoo)
Merge
SingleWithChild
,MultiWithChild
, andComposeWithChild
into a single trait called WithChild.
Breaking
- Removed
ChildFrom
andFromAnother
traits (#612 @M-Adoo) - Removed
SingleParent
andMultiParent
traits. (#612 @M-Adoo) - Removed
PairChild
andPairWithChild
traits. User can use a generic type instead. (#612 @M-Adoo) - Allow only the child to be converted to a widget or a type that implements the Into trait. (#612 @M-Adoo)
- Removed the all builder traits such as WidgetBuilder and ComposeBuilder and so on. (#612 @M-Adoo)
- All implicit child conversions have been removed, except for conversions to Widget. (#612 @M-Adoo)