Safe, zero-cost downcasting for limited compile-time specialization.
MIT License
Published by sagebind over 2 years ago
std
crate feature. (#8, #9)Published by sagebind over 2 years ago
LifetimeFree
for NonZeroUsize
to allow casting to NonZeroUsize
from non-'static
sources which was missing in the prior release. (#7)Published by sagebind over 2 years ago
std
crate feature has been added which is enabled by default. To compile castaway
in no_std
contexts this feature must be enabled using default-features = false
.String
, common wrapper types, etc) in certain contexts, even if the source value is generic without a 'static
bound. It is possible to cast this way to any type implementing the newly-introduced LifetimeFree
trait. (#5, #6)Published by sagebind almost 3 years ago
Published by sagebind about 3 years ago
Result
not being imported properly in macros, which could result in compilation errors when Result
currently refers to another type in the scope invoked.Published by sagebind over 3 years ago
This is the first release of Castaway. This has the following changes from Castaway's predecessor Transmogrify:
match_type
macro now has a slightly different syntax, and match arms must now use irrefutable patterns.