Struct ext_php_rs::class::ClassMetadata
source · pub struct ClassMetadata<T> { /* private fields */ }
Expand description
Stores the class entry and handlers for a Rust type which has been exported to PHP. Usually allocated statically.
Implementations§
source§impl<T> ClassMetadata<T>
impl<T> ClassMetadata<T>
source§impl<T: RegisteredClass> ClassMetadata<T>
impl<T: RegisteredClass> ClassMetadata<T>
sourcepub fn handlers(&self) -> &ZendObjectHandlers
pub fn handlers(&self) -> &ZendObjectHandlers
Returns an immutable reference to the object handlers contained inside the class metadata.
sourcepub fn ce(&self) -> &'static ClassEntry
pub fn ce(&self) -> &'static ClassEntry
Retrieves a reference to the stored class entry.
§Panics
Panics if there is no class entry stored inside the class metadata.
sourcepub fn set_ce(&self, ce: &'static mut ClassEntry)
pub fn set_ce(&self, ce: &'static mut ClassEntry)
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ClassMetadata<T>
impl<T> Send for ClassMetadata<T>
impl<T> Sync for ClassMetadata<T>
impl<T> Unpin for ClassMetadata<T>
impl<T> !UnwindSafe for ClassMetadata<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