Struct ext_php_rs::boxed::ZBox [−][src]
pub struct ZBox<T: ZBoxable>(_);
Expand description
A pointer type for heap allocation using the Zend memory manager.
See the module level documentation for more.
Implementations
Creates a new box from a given pointer.
Parameters
ptr
- A non-null, well-aligned pointer to aT
.
Safety
Caller must ensure that ptr
is non-null, well-aligned and pointing to
a T
.
Returns the pointer contained by the box, dropping the box in the process. The data pointed to by the returned pointer is not released.
Safety
The caller is responsible for managing the memory pointed to by the returned pointer, including freeing the memory.
Trait Implementations
Performs the conversion.
Creates a value from an iterator. Read more
Sets the content of a pre-existing zval. Returns a result containing nothing if setting the content was successful. Read more
Sets the content of a pre-existing zval. Returns a result containing nothing if setting the content was successful. Read more
Sets the content of a pre-existing zval. Returns a result containing nothing if setting the content was successful. Read more
impl<K, V> TryFrom<HashMap<K, V, RandomState>> for ZBox<ZendHashTable> where
K: AsRef<str>,
V: IntoZval,
impl<K, V> TryFrom<HashMap<K, V, RandomState>> for ZBox<ZendHashTable> where
K: AsRef<str>,
V: IntoZval,
Auto Trait Implementations
impl<T> RefUnwindSafe for ZBox<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for ZBox<T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more