Trait objc_encode::Encode [] [src]

pub unsafe trait Encode {
    type Encoding: Encoding;
    fn encode() -> Self::Encoding;
}

Types that have an Objective-C type encoding.

Unsafe because Objective-C will make assumptions about the type (like its size and alignment) from its encoding, so the implementer must verify that the encoding is accurate.

Associated Types

Required Methods

Returns the Objective-C type encoding for Self.

Implementors