pub unsafe trait EncodeReturn: Sealed {
    const ENCODING_RETURN: Encoding;
}
Available on crate feature unstable-encode-internals only.
Expand description

Types that are safe as the return value from Objective-C.

We currently don’t need a similar EncodeArgument trait, but we might in the future.

Safety

Similar to Encode.

Required Associated Constants§

source

const ENCODING_RETURN: Encoding

The Objective-C type-encoding for this type.

Implementations on Foreign Types§

source§

impl EncodeReturn for ()

source§

const ENCODING_RETURN: Encoding = Encoding::Void

Implementors§

source§

impl<T: Encode> EncodeReturn for T

source§

const ENCODING_RETURN: Encoding = T::ENCODING