pub unsafe trait EncodeReturn: Sealed {
const ENCODING_RETURN: Encoding;
}
Expand description
Types that are safe as the return value from Objective-C.
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
a return value, 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_RETURN: Encoding
const ENCODING_RETURN: 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.