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 a T.
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.

Immutably borrows from an owned value. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Executes the destructor for this type. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Creates a value from an iterator. Read more

Creates a value from an iterator. Read more

Creates a value from an iterator. Read more

The corresponding type of the implemented value in PHP.

Sets the content of a pre-existing zval. Returns a result containing nothing if setting the content was successful. Read more

Converts a Rust primitive type into a Zval. Returns a result containing the Zval if successful. Read more

The corresponding type of the implemented value in PHP.

Sets the content of a pre-existing zval. Returns a result containing nothing if setting the content was successful. Read more

Converts a Rust primitive type into a Zval. Returns a result containing the Zval if successful. Read more

The corresponding type of the implemented value in PHP.

Sets the content of a pre-existing zval. Returns a result containing nothing if setting the content was successful. Read more

Converts a Rust primitive type into a Zval. Returns a result containing the Zval if successful. Read more

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.

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.

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.

Converts a Rust primitive type into a Zval. Returns a result containing the Zval if successful. self is cloned before being converted into a zval. Read more

Returns the PHP type of the type.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.