pub trait FromZval<'a>: Sized {
const TYPE: DataType;
// Required method
fn from_zval(zval: &'a Zval) -> Option<Self>;
}
Expand description
Allows zvals to be converted into Rust types in a fallible way. Reciprocal
of the IntoZval
trait.
Required Associated Constants§
Required 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.