mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
feat: Introduce typed keys constructors
This commit is contained in:
parent
66dac923bf
commit
a43a772e9a
6 changed files with 145 additions and 43 deletions
|
@ -23,7 +23,8 @@ impl DocIds {
|
|||
Ok(DocIds { doc_ids })
|
||||
}
|
||||
|
||||
pub fn from_bytes(vec: Vec<u8>) -> io::Result<Self> {
|
||||
pub fn from_bytes(vec: Vec<u8>) -> Result<Self, Box<Error>> {
|
||||
// FIXME check if modulo DocumentId
|
||||
let len = vec.len();
|
||||
let doc_ids = Data::Shared {
|
||||
vec: Arc::new(vec),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue