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 NautilusTrader.
Functions§
- uuid4_
eq - Compare two UUID values, returning
1when they are equal and0otherwise. - uuid4_
from_ ⚠cstr - Returns a
UUID4from C string pointer. - uuid4_
hash - Compute the stable
u64hash ofuuidusing 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.