Struct ext_php_rs::boxed::ZBox
source · pub struct ZBox<T: ZBoxable>(/* private fields */);
Expand description
A pointer type for heap allocation using the Zend memory manager.
See the module level documentation for more.
Implementations§
source§impl<T: ZBoxable> ZBox<T>
impl<T: ZBoxable> ZBox<T>
sourcepub fn into_raw(self) -> &'static mut T
pub fn into_raw(self) -> &'static mut 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§
source§impl<T: RegisteredClass + Clone> Clone for ZBox<ZendClassObject<T>>
impl<T: RegisteredClass + Clone> Clone for ZBox<ZendClassObject<T>>
source§impl Clone for ZBox<ZendHashTable>
impl Clone for ZBox<ZendHashTable>
source§impl<T: RegisteredClass + Default> Default for ZBox<ZendClassObject<T>>
impl<T: RegisteredClass + Default> Default for ZBox<ZendClassObject<T>>
source§impl Default for ZBox<ZendHashTable>
impl Default for ZBox<ZendHashTable>
source§impl<T: RegisteredClass> From<ZBox<ZendClassObject<T>>> for ZBox<ZendObject>
impl<T: RegisteredClass> From<ZBox<ZendClassObject<T>>> for ZBox<ZendObject>
source§fn from(obj: ZBox<ZendClassObject<T>>) -> Self
fn from(obj: ZBox<ZendClassObject<T>>) -> Self
Converts to this type from the input type.
source§impl<'a> FromIterator<(&'a str, _zval_struct)> for ZBox<ZendHashTable>
impl<'a> FromIterator<(&'a str, _zval_struct)> for ZBox<ZendHashTable>
source§impl FromIterator<(u64, _zval_struct)> for ZBox<ZendHashTable>
impl FromIterator<(u64, _zval_struct)> for ZBox<ZendHashTable>
source§impl FromIterator<_zval_struct> for ZBox<ZendHashTable>
impl FromIterator<_zval_struct> for ZBox<ZendHashTable>
source§impl<T: RegisteredClass> IntoZval for ZBox<ZendClassObject<T>>
impl<T: RegisteredClass> IntoZval for ZBox<ZendClassObject<T>>
source§impl IntoZval for ZBox<ZendHashTable>
impl IntoZval for ZBox<ZendHashTable>
source§impl IntoZval for ZBox<ZendObject>
impl IntoZval for ZBox<ZendObject>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ZBox<T>where
T: RefUnwindSafe,
impl<T> !Send for ZBox<T>
impl<T> !Sync for ZBox<T>
impl<T> Unpin for ZBox<T>
impl<T> UnwindSafe for ZBox<T>where
T: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more