#[repr(C)]pub struct Module {
pub name: RString,
pub functions: Vec<Function>,
pub classes: Vec<Class>,
pub enums: Vec<Enum>,
pub constants: Vec<Constant>,
}Expand description
Represents an extension containing a set of exports.
Fields§
§name: RStringName of the extension.
functions: Vec<Function>Functions exported by the extension.
classes: Vec<Class>Classes exported by the extension.
enums: Vec<Enum>Available on crate feature
enum only.Enums exported by the extension.
constants: Vec<Constant>Constants exported by the extension.
Trait Implementations§
Source§impl From<ModuleBuilder<'_>> for Module
Builds a Module from a ModuleBuilder.
This is used to generate the PHP stubs for the module.
impl From<ModuleBuilder<'_>> for Module
Builds a Module from a ModuleBuilder.
This is used to generate the PHP stubs for the module.
Source§fn from(builder: ModuleBuilder<'_>) -> Self
fn from(builder: ModuleBuilder<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl !Send for Module
impl !Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
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