Trait ext_php_rs::convert::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§
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
.
Object Safety§
This trait is not object safe.
Implementors§
impl<'a> FromZendObjectMut<'a> for &'a mut Closure
Available on crate feature
closure
only.