pub unsafe trait PlaceCoerce<From>: HasPlace{
type Output: HasPlace<Target = Self::Target>;
}Expand description
If at a coercion site an expression e has type T but type U was
expected, and T: HasPlace and T::Target: PlaceCoerce<T>, then we replace
e with @T::Target::Output **e and repeat this until types match and
raise an error otherwise.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".