[][src]Trait objc_encode::Encode

pub unsafe trait Encode {
    const ENCODING: Encoding<'static>;
}

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 Constants

const ENCODING: Encoding<'static>

Returns the Objective-C type encoding for Self.

Loading content...

Implementations on Foreign Types

impl<'a, T: 'a> Encode for Option<&'a T> where
    &'a T: Encode
[src]

impl<'a, T: 'a> Encode for Option<&'a mut T> where
    &'a mut T: Encode
[src]

Loading content...

Implementors

impl Encode for ()[src]

impl Encode for *const c_void[src]

impl Encode for *const i8[src]

impl Encode for *const u8[src]

impl Encode for *mut c_void[src]

impl Encode for *mut i8[src]

impl Encode for *mut u8[src]

impl Encode for bool[src]

impl Encode for f32[src]

impl Encode for f64[src]

impl Encode for i8[src]

impl Encode for i16[src]

impl Encode for i32[src]

impl Encode for i64[src]

impl Encode for isize[src]

impl Encode for u8[src]

impl Encode for u16[src]

impl Encode for u32[src]

impl Encode for u64[src]

impl Encode for usize[src]

impl<T: 'static> Encode for *const T where
    &'a T: Encode
[src]

impl<T: 'static> Encode for *mut T where
    &'a mut T: Encode
[src]

Loading content...