Trait phper_alloc::RefClone

source ·
pub trait RefClone {
    // Required method
    fn ref_clone(&mut self) -> Self;
}
Expand description

Duplicate an object without deep copy, but to only add the refcount, for php refcount struct.

Required Methods§

source

fn ref_clone(&mut self) -> Self

Returns a refcount value with same reference of the value.

Object Safety§

This trait is not object safe.

Implementors§