Available on
phper_enum_supported
only.Expand description
APIs related to PHP enum functionality.
This module provides Rust wrappers for PHP enum functionality, allowing you to define and work with PHP enums from Rust code. It supports pure enums, integer-backed enums, and string-backed enums, corresponding to their PHP counterparts.
The implementation respects the PHP 8.1+ enum feature set and provides a type-safe interface for creating enum cases and handling enum values.
Structs§
- Enum
- The Enum holds zend_class_entry for PHP enum, created by Module::add_enum or EnumEntity::bound_enum.
- Enum
Case - Represents an enum case within a PHP enum.
- Enum
Entity - Builder for registering a PHP enum.
Enums§
- Enum
Type - Enum type in PHP.
Traits§
- Enum
Backing Type - Trait representing a backing type for enum values.