objc_foundation

Trait INSValue

Source
pub trait INSValue: INSObject {
    type Value: 'static + Copy + Encode;

    // Provided methods
    fn value(&self) -> Self::Value { ... }
    fn encoding(&self) -> Encoding { ... }
    fn from_value(value: Self::Value) -> Id<Self> { ... }
}

Required Associated Types§

Source

type Value: 'static + Copy + Encode

Provided Methods§

Source

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

Source

fn encoding(&self) -> Encoding

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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

Source§

type Value = T