Trait ext_php_rs::convert::FromZendObject[][src]

pub trait FromZendObject<'a>: Sized {
    fn from_zend_object(obj: &'a ZendObject) -> Result<Self>;
}
Expand description

FromZendObject is implemented by types which can be extracted from a Zend object.

Normal usage is through the helper method ZendObject::extract:

let obj: ZendObject = ...;
let repr: String = obj.extract();
let props: HashMap = obj.extract();

Should be functionally equivalent to casting an object to another compatable type.

Required methods

Extracts Self from the source ZendObject.

Implementations on Foreign Types

Implementors