Module convert

Source
Expand description

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

Traitsยง

FromZendObject
FromZendObject is implemented by types which can be extracted from a Zend object.
FromZendObjectMut
Implemented on types which can be extracted from a mutable zend object.
FromZval
Allows zvals to be converted into Rust types in a fallible way. Reciprocal of the IntoZval trait.
FromZvalMut
Allows mutable zvals to be converted into Rust types in a fallible way.
IntoZendObject
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.
IntoZval
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.
IntoZvalDyn
An object-safe version of the IntoZval trait.