objc_foundation

Struct NSValue

Source
pub struct NSValue<T> { /* private fields */ }

Trait Implementations§

Source§

impl<T> INSCopying for NSValue<T>
where T: Any,

Source§

type Output = NSValue<T>

Source§

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

Source§

impl<T> INSObject for NSValue<T>
where T: Any,

Source§

fn class() -> &'static Class

Source§

fn hash_code(&self) -> usize

Source§

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

Source§

fn description(&self) -> ShareId<NSString>

Source§

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

Source§

fn new() -> Id<Self>

Source§

impl<T> INSValue for NSValue<T>
where T: Any + Copy + Encode,

Source§

type Value = T

Source§

fn value(&self) -> Self::Value

Source§

fn encoding(&self) -> Encoding

Source§

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

Source§

impl<T> Message for NSValue<T>

Source§

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

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

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

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

Auto Trait Implementations§

§

impl<T> Freeze for NSValue<T>

§

impl<T> RefUnwindSafe for NSValue<T>
where T: RefUnwindSafe,

§

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

§

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

§

impl<T> Unpin for NSValue<T>
where T: Unpin,

§

impl<T> UnwindSafe for NSValue<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.