You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 18, 2026. It is now read-only.
Currently, it's not really possible to implement TypeUuid for a generic type. You can implement it for a concrete instantiation of a type, but not generically for all instantiations, i.e. you can implement it for Vec<String> and Vec<usize>, but there's no way to implement it generically for all Vec<T>. The way to do this would be to automatically generate a UUID for the concrete instantiation of the type based on the UUIDs of the input types. In theory this can be done with const functions by writing a function that takes a pair of Bytes and spits out a new Bytes that mixes the two together in a collision-resistant way.
Currently, it's not really possible to implement
TypeUuidfor a generic type. You can implement it for a concrete instantiation of a type, but not generically for all instantiations, i.e. you can implement it forVec<String>andVec<usize>, but there's no way to implement it generically for allVec<T>. The way to do this would be to automatically generate a UUID for the concrete instantiation of the type based on the UUIDs of the input types. In theory this can be done with const functions by writing a function that takes a pair ofBytesand spits out a newBytesthat mixes the two together in a collision-resistant way.