Type Definition ext_php_rs::zend::ZendObjectHandlers
source · pub type ZendObjectHandlers = zend_object_handlers;
Expand description
A set of functions associated with a PHP class.
Implementations§
source§impl ZendObjectHandlers
impl ZendObjectHandlers
sourcepub fn new<T: RegisteredClass>() -> ZendObjectHandlers
pub fn new<T: RegisteredClass>() -> ZendObjectHandlers
Creates a new set of object handlers based on the standard object handlers.
sourcepub unsafe fn init<T: RegisteredClass>(ptr: *mut ZendObjectHandlers)
pub unsafe fn init<T: RegisteredClass>(ptr: *mut ZendObjectHandlers)
Initializes a given set of object handlers by copying the standard
object handlers into the memory location, as well as setting up the
T
type destructor.
Parameters
ptr
- Pointer to memory location to copy the standard handlers to.
Safety
Caller must guarantee that the ptr
given is a valid memory location.