[][src]Trait objc::Encode

pub unsafe trait Encode {
    fn encode() -> 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.

Required methods

fn encode() -> Encoding

Returns the Objective-C type encoding for Self.

Loading content...

Implementations on Foreign Types

impl Encode for i8[src]

impl Encode for i16[src]

impl Encode for i32[src]

impl Encode for i64[src]

impl Encode for u8[src]

impl Encode for u16[src]

impl Encode for u32[src]

impl Encode for u64[src]

impl Encode for f32[src]

impl Encode for f64[src]

impl Encode for bool[src]

impl Encode for ()[src]

impl Encode for *mut c_char[src]

impl Encode for *const c_char[src]

impl Encode for *mut c_void[src]

impl Encode for *const c_void[src]

impl Encode for isize[src]

impl Encode for usize[src]

impl<'a> Encode for Option<&'a Object>[src]

impl<'a> Encode for Option<&'a mut Object>[src]

impl Encode for *const Object[src]

impl Encode for *mut Object[src]

impl<'a> Encode for Option<&'a Class>[src]

impl<'a> Encode for Option<&'a mut Class>[src]

impl Encode for *const Class[src]

impl Encode for *mut Class[src]

Loading content...

Implementors

impl Encode for Sel[src]

impl<'a> Encode for &'a Class[src]

impl<'a> Encode for &'a Object[src]

impl<'a> Encode for &'a mut Class[src]

impl<'a> Encode for &'a mut Object[src]

Loading content...