Trait objc2::encode::EncodeArgument

source ·
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§

source

const ENCODING_ARGUMENT: Encoding

The Objective-C type-encoding for this type.

Object Safety§

This trait is not object safe.

Implementors§