Trait ext_php_rs::rc::PhpRc

source ·
pub trait PhpRc {
    fn get_rc(&self) -> &ZendRefcount;
    fn get_rc_mut(&mut self) -> &mut ZendRefcount;

    fn get_count(&self) -> u32 { ... }
    fn inc_count(&mut self) { ... }
    fn dec_count(&mut self) { ... }
}
Expand description

Implemented on refcounted types.

Required Methods§

Returns an immutable reference to the corresponding refcount object.

Returns a mutable reference to the corresponding refcount object.

Provided Methods§

Returns the number of references to the object.

Increments the reference counter by 1.

Decrements the reference counter by 1.

Implementors§