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.

Constructs from a raw pointer.

Consumes and returning a wrapped raw pointer.

Will leak memory.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.