Trait phper_alloc::ToRefOwned
source · pub trait ToRefOwned {
type Owned: Borrow<Self>;
// Required method
fn to_ref_owned(&mut self) -> Self::Owned;
}
Expand description
Duplicate an object without deep copy, but to only add the refcount, for php refcount struct.
Required Associated Types§
Required Methods§
sourcefn to_ref_owned(&mut self) -> Self::Owned
fn to_ref_owned(&mut self) -> Self::Owned
Creates owned data from borrowed data, by increasing refcount.
Object Safety§
This trait is not object safe.