Trait ext_php_rs::convert::FromZvalMut[][src]

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

    fn from_zval_mut(zval: &'a mut Zval) -> Option<Self>;
}
Expand description

Allows mutable zvals to be converted into Rust types in a fallible way.

If Self does not require the zval to be mutable to be extracted, you should implement FromZval instead, as this trait is generically implemented for any type that implements FromZval.

Associated Constants

The corresponding type of the implemented value in PHP.

Required methods

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

Parameters
  • zval - Zval to get value from.

Implementors