Struct objc_encode::encoding::Array
[−]
[src]
pub struct Array<T> where
T: Encoding, { /* fields omitted */ }
An encoding for an array.
Methods
impl<T> Array<T> where
T: Encoding,
[src]
T: Encoding,
fn new(len: u32, item: T) -> Array<T>
Constructs an encoding for an array with the given length and of items with the given encoding.
Trait Implementations
impl<T: Clone> Clone for Array<T> where
T: Encoding,
[src]
T: Encoding,
fn clone(&self) -> Array<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<T: Copy> Copy for Array<T> where
T: Encoding,
[src]
T: Encoding,
impl<T: Debug> Debug for Array<T> where
T: Encoding,
[src]
T: Encoding,
impl<T> Encoding for Array<T> where
T: Encoding,
[src]
T: Encoding,
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 = T
The type of Encoding
that Self will use if it is an encoding for an array to describe its items. Read more
type StructFields = Never
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, T, Never, 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<T> Display for Array<T> where
T: Encoding,
[src]
T: Encoding,
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T, E: ?Sized> PartialEq<E> for Array<T> where
T: Encoding,
E: Encoding,
[src]
T: Encoding,
E: Encoding,