Module ext_php_rs::convert

source ·
Expand description

Traits used to convert between Zend/PHP and Rust types.

Traits

FromZendObject is implemented by types which can be extracted from a Zend object.
Implemented on types which can be extracted from a mutable zend object.
Allows zvals to be converted into Rust types in a fallible way. Reciprocal of the IntoZval trait.
Allows mutable zvals to be converted into Rust types in a fallible way.
Implemented on types which can be converted into a Zend object. It is up to the implementation to determine the type of object which is produced.
Provides implementations for converting Rust primitive types into PHP zvals. Alternative to the built-in Rust From and TryFrom implementations, allowing the caller to specify whether the Zval contents will persist between requests.
An object-safe version of the IntoZval trait.