Module uuid

Source
Expand description

FFI helpers for the UUID4 wrapper type.

The functions exported here make it possible for C/Python code to create, compare, and hash UUID values without having to understand the internal representation chosen by PoseiTrader.

Functions§

uuid4_eq
Compare two UUID values, returning 1 when they are equal and 0 otherwise.
uuid4_from_cstr
Returns a UUID4 from C string pointer.
uuid4_hash
Compute the stable u64 hash of uuid using Rust’s default hasher.
uuid4_new
Generate a new random (version-4) UUID and return it by value.
uuid4_to_cstr
Return a borrowed null-terminated UTF-8 C string representing uuid.