pub trait GetOwnership {
// Required method
fn ownership() -> Ownership;
}
Expand description
A trait for getting the ownership of a type.
This trait exists so that TypedFunction
can automatically generate
FunctionInfo
containing the proper Ownership
for its argument types.
This trait is automatically implemented when using the Reflect
derive macro.
Required Methods§
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.