Trait ParamType
pub trait ParamType:
Sized
+ ToGodot
+ 'static {
type ArgPassing: ArgPassing;
// Provided method
fn owned_to_arg(self) -> impl AsArg<Self> { ... }
}
Expand description
Implemented for all parameter types T
that are allowed to receive impl AsArg<T>
.
Deprecated: This trait is considered deprecated and will be removed in 0.4. It is still required to be implemented by types that should
be passed AsArg
in the current version, though.
Required Associated Types§
type ArgPassing: ArgPassing
Provided Methods§
fn owned_to_arg(self) -> impl AsArg<Self>
👎Deprecated since 0.3.2: This method is no longer needed and will be removed in 0.4
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.