Skip to main content

Module binary

Module binary 

Source
Expand description

Provides implementations for converting to and from Zend binary strings, commonly returned from functions such as pack and unpack.

Structs§

Binary
Acts as a wrapper around Vec<T> where T implements Pack. Primarily used for passing binary data into Rust functions. Can be treated as a Vec in most situations, or can be ‘unwrapped’ into a Vec through the From implementation on Vec.

Traits§

Pack
Used to convert between Zend binary strings and vectors. Useful in conjunction with the pack and unpack functions built-in to PHP.