ext_php_rs/zend/module.rs
1//! Builder and objects for creating modules in PHP. A module is the base of a
2//! PHP extension.
3
4use crate::ffi::zend_module_entry;
5
6/// A Zend module entry, also known as an extension.
7pub type ModuleEntry = zend_module_entry;
8
9impl ModuleEntry {
10 /// Allocates the module entry on the heap, returning a pointer to the
11 /// memory location. The caller is responsible for the memory pointed to.
12 pub fn into_raw(self) -> *mut Self {
13 Box::into_raw(Box::new(self))
14 }
15}