ref-cast 1.0.25

Safely cast &T to &U where the struct U contains a single field of type T.
Documentation
1
2
3
4
5
6
7
8
9
10
error[E0446]: private type `Private` in public interface
 --> tests/ui/private.rs:3:10
  |
3 | #[derive(RefCast, RefCastCustom)]
  |          ^^^^^^^ can't leak private type
...
9 | struct Private;
  | -------------- `Private` declared as private
  |
  = note: this error originates in the derive macro `RefCast` (in Nightly builds, run with -Z macro-backtrace for more info)