Trait ext_php_rs::convert::IntoZvalDyn [−][src]
pub trait IntoZvalDyn {
fn as_zval(&self, persistent: bool) -> Result<Zval>;
fn get_type(&self) -> DataType;
}
Expand description
Required methods
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.
Parameters
persistent
- Whether the contents of the Zval will persist between requests.