RefCount

Trait RefCount 

Source
pub trait RefCount {
    // Required methods
    unsafe fn add_ref(&self);
    unsafe fn release_ref(&self) -> bool;
    fn new(count: i32) -> Self;
    fn get(&self) -> i32;
}

Required Methods§

Source

unsafe fn add_ref(&self)

Source

unsafe fn release_ref(&self) -> bool

Source

fn new(count: i32) -> Self

Source

fn get(&self) -> i32

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§