Reference types, which are safe to use
StableMut | A type-erased pointer with stable layout to a trait object
This pointer has the same layout as &dyn Trait for #[stable_vtable] traits
as with [RFC 2955].
Note: While &mut T has special handling when inside Option<T> , no such guarantee is stably made.
There are test suites that check to ensure this is correct.
|
StableRef | A type-erased pointer with stable layout to a trait object
This pointer has the same layout as &dyn Trait for #[stable_vtable] traits
as with [RFC 2955].
Note: While &T has special handling when inside Option<T> , no such guarantee is stably made.
There are test suites that check to ensure this is correct.
|