pub trait FromZvalMut<'a>: Sized {
const TYPE: DataType;
const NULLABLE: bool = false;
const BY_REF: bool = false;
// Required method
fn from_zval_mut(zval: &'a mut Zval) -> Option<Self>;
// Provided method
fn from_missing() -> Option<Self> { ... }
}Expand description
Required Associated Constants§
Provided Associated Constants§
Required Methods§
Provided Methods§
Sourcefn from_missing() -> Option<Self>
fn from_missing() -> Option<Self>
The value to use when a PHP argument of this type was omitted by the
caller. None means the argument is required.
It must return Some exactly when NULLABLE is true. The macros
decide from NULLABLE alone which parameters PHP callers may omit.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<'a> FromZvalMut<'a> for Option<&'a mut ZendHashTable>
impl<'a> FromZvalMut<'a> for Option<&'a mut ZendHashTable>
Implementors§
Source§impl<'a, T: RegisteredClass> FromZvalMut<'a> for &'a mut ZendClassObject<T>
impl<'a, T: RegisteredClass> FromZvalMut<'a> for &'a mut ZendClassObject<T>
Source§impl<'a, T> FromZvalMut<'a> for Twhere
T: FromZval<'a>,
impl<'a, T> FromZvalMut<'a> for Twhere
T: FromZval<'a>,
Source§impl<'a> FromZvalMut<'a> for &'a mut Closure
Available on crate feature closure only.
impl<'a> FromZvalMut<'a> for &'a mut Closure
Available on crate feature
closure only.