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§
Sourcefn from_zend_object_mut(obj: &'a mut ZendObject) -> Result<Self>
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§
impl<'a> FromZendObjectMut<'a> for &'a mut Closure
Available on crate feature
closure
only.