pub unsafe trait LiftRef<UT> {
type LiftType: Lift<UT> + Borrow<Self>;
}
Expand description
Reexport items from other uniffi creates Lift references
This is usually derived from Lift and also implemented for the inner T
value of smart
pointers. For example, if Lift
is implemented for Arc<T>
, then we implement this to lift
§Safety
All traits are unsafe (implementing it requires unsafe impl
) because we can’t guarantee
that it’s safe to pass your type out to foreign-language code and back again. Buggy
implementations of this trait might violate some assumptions made by the generated code,
or might not match with the corresponding code in the generated foreign-language bindings.
These traits should not be used directly, only in generated code, and the generated code should
have fixture tests to test that everything works correctly together.
&T
using the Arc.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.