castaway icon indicating copy to clipboard operation
castaway copied to clipboard

Safe, zero-cost downcasting for limited compile-time specialization.

Results 7 castaway issues
Sort by recently updated
recently updated
newest added

Since `type_id_of` implementation for non-static types is a bit hacky, I think it is a good idea to call for review on reddit r/rust or in [rust-lang/rust](https://github.com/rust-lang/rust).

Auto-deref specialization can also be used to specialize on trait implementations. I'm using this a lot in a lib ([1](https://github.com/kangalioo/poise/blob/master/src/slash/argument/autocompletable.rs), [2](https://github.com/kangalioo/poise/blob/master/src/slash/argument/into_stream.rs), [3](https://github.com/kangalioo/poise/blob/master/src/slash/argument/slash_trait.rs)) and it would be awesome to abstract it...

enhancement

Hey @sagebind! I was wondering if you had an idea when you'd be releasing a new version of `castaway`? We use it in `compact_str` and need the new version to...

Bumps [rustversion](https://github.com/dtolnay/rustversion) from 1.0.15 to 1.0.17. Release notes Sourced from rustversion's releases. 1.0.17 Support Windows builds that have OUT_DIR prefixed with \\?\ (#51) 1.0.16 Resolve unexpected_cfgs warning (#48) Commits adb11fa...

dependencies

Bumps [paste](https://github.com/dtolnay/paste) from 1.0.14 to 1.0.15. Release notes Sourced from paste's releases. 1.0.15 Resolve unexpected_cfgs warning (#102) Commits a2c7e27 Release 1.0.15 1d23098 Merge pull request #102 from dtolnay/checkcfg 1edfaae Resolve...

dependencies

The `TryCastMutLifetimeFree` and `TryCastRefLifetimeFree` trait implementations have default `Sized` bound on the `T` and `U` generics, which prevents unsized types not defined as static from casiting. This PR adds `?Sized`...

The `TryCast{Mut,Ref,Owned}LifetimeFree` traits are implemented for `LifetimeFree` target types, but not implemented for `LifetimeFree` **source** types. This PR adds `TryCast{Mut,Ref,Owned}LifetimeFreeBack` traits with source types bounded by `LifetimeFree` trait. This makes...