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.
An object-safe version of the
IntoZval
trait.