pub trait FromZendObjectMut<'a>: Sized {
    // Required method
    fn from_zend_object_mut(obj: &'a mut ZendObject) -> Result<Self>;
}
Expand description

Implemented on types which can be extracted from a mutable zend object.

If Self does not require the object to be mutable, it should implement FromZendObject instead, as this trait is generically implemented for any types that also implement FromZendObject.

Required Methods§

source

fn from_zend_object_mut(obj: &'a mut ZendObject) -> Result<Self>

Extracts Self from the source ZendObject.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> FromZendObjectMut<'a> for &'a mut Closure

Available on crate feature closure only.
source§

impl<'a, T> FromZendObjectMut<'a> for T
where T: FromZendObject<'a>,

source§

impl<'a, T: RegisteredClass> FromZendObjectMut<'a> for &'a mut ZendClassObject<T>