Struct phper_alloc::EBox [−][src]
pub struct EBox<T: EAllocatable> { /* fields omitted */ }
Expand description
The Box which use php emalloc and efree to manage memory.
TODO now feature allocator_api is still unstable, implement myself, use Box<T, Alloc> later.
Implementations
Allocates heap memory using emalloc then places x into it.
Panic
Panic if size_of::<T>() equals zero.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for EBox<T> where
T: RefUnwindSafe, impl<T> UnwindSafe for EBox<T> where
T: RefUnwindSafe,