Trait objc_encode::Encoding [] [src]

pub trait Encoding: Display {
    type PointerTarget: ?Sized + Encoding;
    type ArrayItem: ?Sized + Encoding;
    type StructFields: ?Sized + Encodings;
    type UnionMembers: ?Sized + Encodings;
    fn descriptor(
        &self
    ) -> Descriptor<Self::PointerTarget, Self::ArrayItem, Self::StructFields, Self::UnionMembers>; fn eq_encoding<T: ?Sized + Encoding>(&self, other: &T) -> bool { ... } fn write<W: Write>(&self, writer: &mut W) -> Result { ... } }

An Objective-C type encoding.

Associated Types

The type of Encoding that Self will use if it is an encoding for a pointer to describe its target.

The type of Encoding that Self will use if it is an encoding for an array to describe its items.

The type of Encodings that Self will use if it is an encoding for a struct to describe its fields.

The type of Encodings that Self will use if it is an encoding for a union to describe its members.

Required Methods

Returns a Descriptor that describes what kind of encoding self is.

Provided Methods

Returns whether self is equal to the given Encoding.

Writes the string representation of self to the given writer.

Implementors