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]
S: AsRef<str>,
T: Encodings,
fn new(name: S, fields: T) -> Struct<S, T>
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]
S: AsRef<str>,
T: Encodings,
fn clone(&self) -> Struct<S, T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<S: Copy, T: Copy> Copy for Struct<S, T> where
S: AsRef<str>,
T: Encodings,
[src]
S: AsRef<str>,
T: Encodings,
impl<S: Debug, T: Debug> Debug for Struct<S, T> where
S: AsRef<str>,
T: Encodings,
[src]
S: AsRef<str>,
T: Encodings,
impl<S, T> Encoding for Struct<S, T> where
S: AsRef<str>,
T: Encodings,
[src]
S: AsRef<str>,
T: Encodings,
type PointerTarget = Never
The type of Encoding
that Self will use if it is an encoding for a pointer to describe its target. Read more
type ArrayItem = Never
The type of Encoding
that Self will use if it is an encoding for an array to describe its items. Read more
type StructFields = T
The type of Encodings
that Self will use if it is an encoding for a struct to describe its fields. Read more
type UnionMembers = Never
The type of Encodings
that Self will use if it is an encoding for a union to describe its members. Read more
fn descriptor(&self) -> Descriptor<Never, Never, T, Never>
Returns a Descriptor
that describes what kind of encoding self is.
fn eq_encoding<T: ?Sized + Encoding>(&self, other: &T) -> bool
Returns whether self is equal to the given Encoding
.
fn write<W: Write>(&self, writer: &mut W) -> Result
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]
S: AsRef<str>,
T: Encodings,
fn fmt(&self, formatter: &mut Formatter) -> Result
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]
S: AsRef<str>,
T: Encodings,
E: Encoding,