pub struct ClassRef<'a, T>(/* private fields */);Expand description
Shared access to the Rust value of a class object.
The value cannot be borrowed mutably while this guard lives.
Trait Implementations§
Source§impl<'a, T: PhpClass> FromZendObject<'a> for ClassRef<'a, T>
impl<'a, T: PhpClass> FromZendObject<'a> for ClassRef<'a, T>
Source§fn from_zend_object(obj: &'a ZendObject) -> Result<Self>
fn from_zend_object(obj: &'a ZendObject) -> Result<Self>
Source§impl<'a, T: PhpClass> FromZval<'a> for ClassRef<'a, T>
impl<'a, T: PhpClass> FromZval<'a> for ClassRef<'a, T>
Source§fn try_from_zval(zval: &'a Zval) -> Result<Self>
fn try_from_zval(zval: &'a Zval) -> Result<Self>
Source§const NULLABLE: bool = false
const NULLABLE: bool = false
Whether a PHP argument of this type accepts
null and may be omitted. Read moreSource§fn 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. Read moreAuto Trait Implementations§
impl<'a, T> !RefUnwindSafe for ClassRef<'a, T>
impl<'a, T> !Send for ClassRef<'a, T>
impl<'a, T> !Sync for ClassRef<'a, T>
impl<'a, T> !UnwindSafe for ClassRef<'a, T>
impl<'a, T> Forget for ClassRef<'a, T>
impl<'a, T> Freeze for ClassRef<'a, T>
impl<'a, T> Move for ClassRef<'a, T>
impl<'a, T> Unpin for ClassRef<'a, T>
impl<'a, T> UnsafeUnpin for ClassRef<'a, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<'a, T> FromZendObjectMut<'a> for Twhere
T: FromZendObject<'a>,
impl<'a, T> FromZendObjectMut<'a> for Twhere
T: FromZendObject<'a>,
Source§fn from_zend_object_mut(obj: &'a mut _zend_object) -> Result<T, Error>
fn from_zend_object_mut(obj: &'a mut _zend_object) -> Result<T, Error>
Source§impl<'a, T> FromZvalMut<'a> for Twhere
T: FromZval<'a>,
impl<'a, T> FromZvalMut<'a> for Twhere
T: FromZval<'a>,
Source§const TYPE: DataType = const TYPE: DataType = <T as FromZval>::TYPE;
const TYPE: DataType = const TYPE: DataType = <T as FromZval>::TYPE;
The corresponding type of the implemented value in PHP.
Source§const NULLABLE: bool = const NULLABLE: bool = <T as FromZval>::NULLABLE;
const NULLABLE: bool = const NULLABLE: bool = <T as FromZval>::NULLABLE;
Whether a PHP argument of this type accepts
null and may be omitted.Source§fn from_zval_mut(zval: &'a mut _zval_struct) -> Option<T>
fn from_zval_mut(zval: &'a mut _zval_struct) -> Option<T>
Source§fn from_missing() -> Option<T>
fn from_missing() -> Option<T>
The value to use when a PHP argument of this type was omitted by the
caller.
None means the argument is required. Read more