Module prelude

Source
Expand description

A module typically glob-imported containing the typically required macros and imports.

Re-exports§

pub use crate::builders::ModuleBuilder;
pub use crate::closure::Closure;closure
pub use crate::exception::PhpException;
pub use crate::exception::PhpResult;
pub use crate::types::ZendCallable;

Macros§

php_print
Prints to the PHP standard output, without a newline.
php_println
Prints to the PHP standard output, with a newline.
wrap_constant
Wraps a constant to be used in the [ModuleBuilder::constant] method.
wrap_function
Wraps a function to be used in the [Module::function] method.
zend_fastcall
Defines an extern function with the Zend fastcall convention based on operating system.

Attribute Macros§

php_class
#[php_class] Attribute
php_const
#[php_const] Attribute
php_extern
#[php_extern] Attribute
php_function
#[php_function] Attribute
php_impl
#[php_impl] Attribute
php_module
#[php_module] Attribute

Derive Macros§

ZvalConvert
ZvalConvert Derive Macro