pub trait IntoZval: Sized {
const TYPE: DataType;
const NULLABLE: bool;
// 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.
§Errors
If setting the content fails, an Error
is returned.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.