Trait ext_php_rs::convert::IntoZval
source · pub trait IntoZval: Sized {
const TYPE: DataType;
// Required method
fn set_zval(self, zv: &mut Zval, persistent: bool) -> Result<()>;
// Provided method
fn into_zval(self, persistent: bool) -> Result<Zval> { ... }
}
Expand description
Required Associated Constants§
Required Methods§
sourcefn set_zval(self, zv: &mut Zval, persistent: bool) -> Result<()>
fn set_zval(self, zv: &mut Zval, persistent: bool) -> Result<()>
Sets the content of a pre-existing zval. Returns a result containing nothing if setting the content was successful.
§Parameters
zv
- The Zval to set the content of.persistent
- Whether the contents of the Zval will persist between requests.
Provided Methods§
Object Safety§
This trait is not object safe.