pub unsafe trait EncodeArgument: Sealed {
const ENCODING_ARGUMENT: Encoding;
}Expand description
Types that are safe as arguments to Objective-C methods.
This is a sealed trait, and should not need to be implemented manually.
§Safety
Similar to Encode, except the value is only guaranteed to be valid as
an argument or a parameter, both from functions/methods you’re calling and
from declared functions/methods.
It does not have to be valid as e.g. an instance variable, or as an argument to a function.
Required Associated Constants§
Sourceconst ENCODING_ARGUMENT: Encoding
const ENCODING_ARGUMENT: Encoding
The Objective-C type-encoding for this type.
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.