Struct objc_encode::encoding::Struct [] [src]

pub struct Struct<S, T> where
    S: AsRef<str>,
    T: Encodings
{ /* fields omitted */ }

An encoding for a struct.

Methods

impl<S, T> Struct<S, T> where
    S: AsRef<str>,
    T: Encodings
[src]

Constructs an encoding for a struct with the given name and fields with the given encodings.

Trait Implementations

impl<S: Clone, T: Clone> Clone for Struct<S, T> where
    S: AsRef<str>,
    T: Encodings
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Copy, T: Copy> Copy for Struct<S, T> where
    S: AsRef<str>,
    T: Encodings
[src]

impl<S: Debug, T: Debug> Debug for Struct<S, T> where
    S: AsRef<str>,
    T: Encodings
[src]

Formats the value using the given formatter.

impl<S, T> Encoding for Struct<S, T> where
    S: AsRef<str>,
    T: Encodings
[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<S, T> Display for Struct<S, T> where
    S: AsRef<str>,
    T: Encodings
[src]

Formats the value using the given formatter. Read more

impl<S, T, E: ?Sized> PartialEq<E> for Struct<S, T> where
    S: AsRef<str>,
    T: Encodings,
    E: Encoding
[src]

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

This method tests for !=.