mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-07-02 17:19:07 +02:00
feat: Introduce the FromSharedDataCursor trait
This commit is contained in:
parent
c4e70d0475
commit
9e7261a48f
|
@ -43,3 +43,9 @@ impl BufRead for SharedDataCursor {
|
|||
self.0.consume(amt)
|
||||
}
|
||||
}
|
||||
|
||||
pub trait FromSharedDataCursor: Sized {
|
||||
type Err;
|
||||
|
||||
fn from_shared_data_cursor(data: &mut SharedDataCursor) -> Result<Self, Self::Err>;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user