Struct objc_encode::encoding::Pointer
[−]
[src]
pub struct Pointer<T>(_)
where
T: Encoding;
An encoding for a pointer.
Methods
impl<T> Pointer<T> where
T: Encoding,
[src]
T: Encoding,
fn new(target: T) -> Pointer<T>
Constructs an encoding for a pointer to a target with the given encoding.
Trait Implementations
impl<T: Clone> Clone for Pointer<T> where
T: Encoding,
[src]
T: Encoding,
fn clone(&self) -> Pointer<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 Pointer<T> where
T: Encoding,
[src]
T: Encoding,
impl<T: Debug> Debug for Pointer<T> where
T: Encoding,
[src]
T: Encoding,
impl<T> Encoding for Pointer<T> where
T: Encoding,
[src]
T: Encoding,
type PointerTarget = T
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 = 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<T, Never, 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 Pointer<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 Pointer<T> where
T: Encoding,
E: Encoding,
[src]
T: Encoding,
E: Encoding,