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 and0
otherwise. - uuid4_
from_ ⚠cstr - Returns a
UUID4
from C string pointer. - uuid4_
hash - Compute the stable
u64
hash ofuuid
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
.