Enum objc_encode::encoding::Primitive [] [src]

pub enum Primitive {
    Char,
    Short,
    Int,
    Long,
    LongLong,
    UChar,
    UShort,
    UInt,
    ULong,
    ULongLong,
    Float,
    Double,
    Bool,
    Void,
    String,
    Object,
    Block,
    Class,
    Sel,
    Unknown,
    BitField(u32),
}

An encoding for a "primitive" type which is not a composition of other types.

Variants

Trait Implementations

impl Clone for Primitive
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Primitive
[src]

impl Debug for Primitive
[src]

Formats the value using the given formatter.

impl Encoding for Primitive
[src]

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

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

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

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

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

Returns whether self is equal to the given Encoding.

Writes the string representation of self to the given writer.

impl Display for Primitive
[src]

Formats the value using the given formatter. Read more

impl<E: ?Sized> PartialEq<E> for Primitive where
    E: Encoding
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Primitive
[src]