Struct ext_php_rs::class::ClassMetadata [−][src]
pub struct ClassMetadata<T> { /* fields omitted */ }
Expand description
Stores the class entry and handlers for a Rust type which has been exported to PHP. Usually allocated statically.
Implementations
Returns an immutable reference to the object handlers contained inside the class metadata.
Retrieves a reference to the stored class entry.
Panics
Panics if there is no class entry stored inside the class metadata.
Stores a reference to a class entry inside the class metadata.
Parameters
ce
- The class entry to store.
Panics
Panics if the class entry has already been set in the class metadata. This function should only be called once.