Releases: CodeChain-io/intertrait
Releases · CodeChain-io/intertrait
Deal w/ bindings of associated types in trait impl
Code/doc and macro output improvement
This release is a minor update:
- Some code and doc cleanups
 - Dependency constraints have been lessened by specifying up to minor version constraints
 - Macro outputs have been improved not to cause problems in various contexts (mainly using 
::<crate>in paths rather than<crate> 
Revamp APIs and support `Rc` and `Arc`
This release is incompatible with the previous 0.1.x ones, and completely revamped the APIs for beter ergonomics. The highlights are:
- Support 
RcandArc- For 
Arc, the underlying type must beSync + Send, useCastFromSyncinstead ofCastFromand add[sync]flag right before the list of traits in macros 
 - For 
 - All casts use methods with the same name, 
cast(that is,castis an overloaded name)- Separate traits are defined for each receiver type requireing casts
 
 - Casts for 
Box,Rc, andArcreturnResultinstead ofOptionto give the original receiver back on failure- This was the original design and returning 
Optionwas a bug in API design 
 - This was the original design and returning 
 
Minor polish-ups
linkmeis upgraded to0.2.1andintertraitleverages its new shorthand notation for functions in the macro outputs- Documentations are a bit polished up
 - Upgrade 
trybuildto1.0.25