Trait ext_php_rs::convert::FromZval[][src]

pub trait FromZval<'a>: Sized {
    const TYPE: DataType;

    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.

Associated Constants

The corresponding type of the implemented value in PHP.

Required methods

Attempts to retrieve an instance of Self from a reference to a Zval.

Parameters
  • zval - Zval to get value from.

Implementations on Foreign Types

Implementors