pub unsafe trait RValueParam<T>: Sized { }
Expand description
A trait representing a parameter to a C++ function which is received by rvalue (i.e. by move).
§Panics
The implementations of this trait which take a cxx::UniquePtr
will
panic if the pointer is NULL.
§Safety
Implementers must guarantee that the pointer returned by get_ptr
is of the correct size and alignment of T
.
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.