ZArray

Type Alias ZArray 

Source
pub type ZArray = EBox<ZArr>;
Expand description

An owned PHP array value.

ZArray represents an owned PHP array (hashtable) allocated in the Zend Engine memory. It provides safe access to PHP array operations and automatically manages memory cleanup.

Aliased Type§

pub struct ZArray { /* private fields */ }

Implementations§

Source§

impl ZArray

Source

pub fn new() -> Self

Creates an empty ZArray.

Source

pub fn with_capacity(n: usize) -> Self

Creates an empty ZArray with at least the specified capacity.

Note that the actual capacity is always a power of two, so if you have 12 elements in a hashtable the actual table capacity will be 16.

Trait Implementations§

Source§

impl Clone for ZArray

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for ZArray

Source§

fn default() -> Self

Returns the “default value” for a type. Read more