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
There is an index function that takes K: PrimaryKey => Vec<u8> more or less. And indexes wrap this allowing a number of functions.
Currently this only works for static lifetimes (eg. PkOwned, String). It should be possible to support slices (&str, &[u8]) which will not just avoid a copy, but make the usability much nicer, as many types auto-deref to one of those slices.
Investigate what is needed to make this work for UniqueIndex (the simpler case), and if you can get a Proof of Concept to compile, then we decide if it makes sense to continue on this path.
The text was updated successfully, but these errors were encountered:
There is an index function that takes
K: PrimaryKey => Vec<u8>
more or less. And indexes wrap this allowing a number of functions.Currently this only works for static lifetimes (eg. PkOwned, String). It should be possible to support slices (
&str
,&[u8]
) which will not just avoid a copy, but make the usability much nicer, as many types auto-deref to one of those slices.Investigate what is needed to make this work for UniqueIndex (the simpler case), and if you can get a Proof of Concept to compile, then we decide if it makes sense to continue on this path.
The text was updated successfully, but these errors were encountered: