Trait swift_rs::SwiftRet

source ·
pub trait SwiftRet {
    // Provided method
    unsafe fn retain(&self) { ... }
}
Expand description

Identifies a type as being a valid return type from a Swift function. For types that are objects which need extra retains, the retain function will be re-implemented.

Provided Methods§

source

unsafe fn retain(&self)

Adds a retain to the value if possible

§Safety

Just don’t use this. Let swift! handle it.

Implementations on Foreign Types§

source§

impl SwiftRet for *const c_void

source§

impl SwiftRet for *const u8

source§

impl SwiftRet for *mut c_void

source§

impl SwiftRet for ()

source§

impl<T: SwiftObject> SwiftRet for Option<T>

source§

unsafe fn retain(&self)

Implementors§