pub unsafe trait Encode {
    // Required method
    fn encode() -> Encoding;
}
Expand description

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.

Required Methods§

source

fn encode() -> Encoding

Returns the Objective-C type encoding for Self.

Implementations on Foreign Types§

source§

impl Encode for i16

source§

impl Encode for isize

source§

impl Encode for *const Class

source§

impl<'a> Encode for Option<&'a Object>

source§

impl Encode for u16

source§

impl Encode for *mut c_void

source§

impl Encode for *const Object

source§

impl Encode for *mut Class

source§

impl Encode for u8

source§

impl Encode for bool

source§

impl Encode for f32

source§

impl<'a> Encode for Option<&'a Class>

source§

impl Encode for *mut c_char

source§

impl Encode for usize

source§

impl Encode for u32

source§

impl Encode for i8

source§

impl Encode for f64

source§

impl<'a> Encode for Option<&'a mut Object>

source§

impl Encode for u64

source§

impl Encode for i32

source§

impl Encode for *const c_char

source§

impl Encode for *const c_void

source§

impl Encode for i64

source§

impl Encode for *mut Object

source§

impl Encode for ()

source§

impl<'a> Encode for Option<&'a mut Class>

Implementors§

source§

impl Encode for Sel

source§

impl<'a> Encode for &'a Class

source§

impl<'a> Encode for &'a Object

source§

impl<'a> Encode for &'a mut Class

source§

impl<'a> Encode for &'a mut Object