Trait IntoZendObject

Source
pub trait IntoZendObject {
    // Required method
    fn into_zend_object(self) -> Result<ZBox<ZendObject>>;
}
Expand description

Implemented on types which can be converted into a Zend object. It is up to the implementation to determine the type of object which is produced.

Required Methods§

Source

fn into_zend_object(self) -> Result<ZBox<ZendObject>>

Attempts to convert self into a Zend object.

§Errors

If the conversion fails, an Error is returned.

Implementors§

Source§

impl IntoZendObject for Closure

Available on crate feature closure only.