Type Alias sg_string_handle

Source
pub type sg_string_handle = u32;
Expand description

A handle to an interned string in a stack graph. A zero handle represents a missing string.

We deduplicate strings in a stack graph — that is, we ensure that there are never multiple struct sg_string instances with the same content. That means that you can compare string handles using simple equality, without having to dereference them.