Struct ext_php_rs::bindings::_zend_object[][src]

#[repr(C)]
pub struct _zend_object { pub gc: zend_refcounted_h, pub handle: u32, pub ce: *mut zend_class_entry, pub handlers: *const zend_object_handlers, pub properties: *mut HashTable, pub properties_table: [zval; 1], }

Fields

gc: zend_refcounted_hhandle: u32ce: *mut zend_class_entryhandlers: *const zend_object_handlersproperties: *mut HashTableproperties_table: [zval; 1]

Implementations

Attempts to retrieve the class name of the object.

Checks if the given object is an instance of a registered class with Rust type T.

Attempts to read a property from the Object. Returns a result returning an immutable reference to the Zval if the property exists and can be read, and an Error otherwise.

Parameters

  • name - The name of the property.
  • query - The type of query to use when attempting to get a property.

Attempts to set a property on the object, returning an immutable reference to the Zval if the property can be set.

Parameters

  • name - The name of the property.
  • value - The value to set the property to.

Checks if a property exists on an object. Takes a property name and query parameter, which defines what classifies if a property exists or not. See PropertyQuery for more information.

Parameters

  • name - The name of the property.
  • query - The ‘query’ to classify if a property exists.

Attempts to retrieve the properties of the object. Returned inside a Zend Hashtable.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.