Skip to main content

DataTypeExt

Trait DataTypeExt 

Source
pub trait DataTypeExt {
    // Required methods
    fn as_u32(&self) -> u32;
    fn from_u32(value: u32) -> Self;
}
Expand description

Conversions between DataType and the Zend IS_* type constants.

The constants depend on the PHP version and come from bindgen, so they cannot live next to DataType in ext-php-rs-introspection.

Required Methods§

Source

fn as_u32(&self) -> u32

Returns the integer representation of the data type.

Source

fn from_u32(value: u32) -> Self

Builds the data type from a Zend type info word.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§