Trait FromZendObjectMut

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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>