pub trait GetOwnership {
// Provided 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 for non-reference types when using the Reflect
derive macro. Blanket impls cover &T and &mut T.
Provided 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.