Struct ext_php_rs::ffi::_zend_object_handlers
source · [−]#[repr(C)]pub struct _zend_object_handlers {Show 25 fields
pub offset: c_int,
pub free_obj: zend_object_free_obj_t,
pub dtor_obj: zend_object_dtor_obj_t,
pub clone_obj: zend_object_clone_obj_t,
pub read_property: zend_object_read_property_t,
pub write_property: zend_object_write_property_t,
pub read_dimension: zend_object_read_dimension_t,
pub write_dimension: zend_object_write_dimension_t,
pub get_property_ptr_ptr: zend_object_get_property_ptr_ptr_t,
pub has_property: zend_object_has_property_t,
pub unset_property: zend_object_unset_property_t,
pub has_dimension: zend_object_has_dimension_t,
pub unset_dimension: zend_object_unset_dimension_t,
pub get_properties: zend_object_get_properties_t,
pub get_method: zend_object_get_method_t,
pub get_constructor: zend_object_get_constructor_t,
pub get_class_name: zend_object_get_class_name_t,
pub cast_object: zend_object_cast_t,
pub count_elements: zend_object_count_elements_t,
pub get_debug_info: zend_object_get_debug_info_t,
pub get_closure: zend_object_get_closure_t,
pub get_gc: zend_object_get_gc_t,
pub do_operation: zend_object_do_operation_t,
pub compare: zend_object_compare_t,
pub get_properties_for: zend_object_get_properties_for_t,
}
Fields
offset: c_int
free_obj: zend_object_free_obj_t
dtor_obj: zend_object_dtor_obj_t
clone_obj: zend_object_clone_obj_t
read_property: zend_object_read_property_t
write_property: zend_object_write_property_t
read_dimension: zend_object_read_dimension_t
write_dimension: zend_object_write_dimension_t
get_property_ptr_ptr: zend_object_get_property_ptr_ptr_t
has_property: zend_object_has_property_t
unset_property: zend_object_unset_property_t
has_dimension: zend_object_has_dimension_t
unset_dimension: zend_object_unset_dimension_t
get_properties: zend_object_get_properties_t
get_method: zend_object_get_method_t
get_constructor: zend_object_get_constructor_t
get_class_name: zend_object_get_class_name_t
cast_object: zend_object_cast_t
count_elements: zend_object_count_elements_t
get_debug_info: zend_object_get_debug_info_t
get_closure: zend_object_get_closure_t
get_gc: zend_object_get_gc_t
do_operation: zend_object_do_operation_t
compare: zend_object_compare_t
get_properties_for: zend_object_get_properties_for_t
Implementations
sourceimpl _zend_object_handlers
impl _zend_object_handlers
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.
Trait Implementations
sourceimpl Clone for _zend_object_handlers
impl Clone for _zend_object_handlers
sourcefn clone(&self) -> _zend_object_handlers
fn clone(&self) -> _zend_object_handlers
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for _zend_object_handlers
impl Debug for _zend_object_handlers
impl Copy for _zend_object_handlers
Auto Trait Implementations
impl RefUnwindSafe for _zend_object_handlers
impl Send for _zend_object_handlers
impl Sync for _zend_object_handlers
impl Unpin for _zend_object_handlers
impl UnwindSafe for _zend_object_handlers
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more