feat: Introduce the FromSharedDataCursor trait

This commit is contained in:
Clément Renault 2019-02-17 16:29:49 +01:00
parent c4e70d0475
commit 9e7261a48f
No known key found for this signature in database
GPG Key ID: 0151CDAB43460DAE

View File

@ -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>;
}