[][src]Struct objc_foundation::NSValue

pub struct NSValue<T> { /* fields omitted */ }

Trait Implementations

impl<T> INSObject for NSValue<T> where
    T: Any
[src]

fn hash_code(&self) -> usize[src]

fn is_equal<T>(&self, other: &T) -> bool where
    T: INSObject
[src]

fn description(&self) -> ShareId<NSString>[src]

fn is_kind_of(&self, cls: &Class) -> bool[src]

fn new() -> Id<Self>[src]

impl<T> INSCopying for NSValue<T> where
    T: Any
[src]

type Output = NSValue<T>

fn copy(&self) -> ShareId<Self::Output>[src]

impl<T> INSValue for NSValue<T> where
    T: Any + Copy + Encode
[src]

type Value = T

fn value(&self) -> Self::Value[src]

fn encoding(&self) -> Encoding[src]

fn from_value(value: Self::Value) -> Id<Self>[src]

impl<T> Message for NSValue<T>[src]

unsafe fn send_message<A, R>(
    &self,
    sel: Sel,
    args: A
) -> Result<R, MessageError> where
    A: MessageArguments,
    R: Any
[src]

Sends a message to self with the given selector and arguments. Read more

fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError> where
    A: EncodeArguments,
    R: Encode
[src]

Verifies that the argument and return types match the encoding of the method for the given selector. Read more

Auto Trait Implementations

impl<T> Send for NSValue<T> where
    T: Send

impl<T> Sync for NSValue<T> where
    T: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]