[][src]Trait polyhorn_ios_sys::Raw

pub trait Raw {
    unsafe fn from_raw(object: *mut Object) -> Self;
unsafe fn as_raw(&self) -> *mut Object; unsafe fn from_raw_retain(object: *mut Object) -> Self
    where
        Self: Sized
, { ... } }

A trait that is implemented by Rust wrappers of Objective-C types.

Required methods

unsafe fn from_raw(object: *mut Object) -> Self

Returns a new instance of this Rust type from the given raw Objective-C object without affecting its retain count.

unsafe fn as_raw(&self) -> *mut Object

Returns the underlying pointer to the raw Objective-C object.

Loading content...

Provided methods

unsafe fn from_raw_retain(object: *mut Object) -> Self where
    Self: Sized

Returns a new instance of this Rust type that retains the given raw Objective-C object.

Loading content...

Implementors

impl Raw for NSAttributedString[src]

impl Raw for NSMutableArray[src]

impl Raw for NSMutableAttributedString[src]

impl Raw for NSMutableParagraphStyle[src]

impl Raw for NSNumber[src]

impl Raw for NSParagraphStyle[src]

impl Raw for NSString[src]

impl Raw for NSValue[src]

impl Raw for PLYAnimationHandle[src]

impl Raw for PLYImageView[src]

impl Raw for PLYKeyboardAvoidingView[src]

impl Raw for PLYKeyframeAnimation[src]

impl Raw for PLYLabel[src]

impl Raw for PLYLayout[src]

impl Raw for PLYLayoutEvent[src]

impl Raw for PLYScrollView[src]

impl Raw for PLYStatusBar[src]

impl Raw for PLYTextInputView[src]

impl Raw for PLYView[src]

impl Raw for PLYViewController[src]

impl Raw for PLYWindow[src]

impl Raw for UIApplication[src]

impl Raw for UIColor[src]

impl Raw for UIFont[src]

impl Raw for UIImage[src]

impl<T> Raw for PLYCallback<T> where
    T: Raw
[src]

Loading content...