pub trait HasCursor {
type Cursor<'a>: Read + 'a
where Self: 'a;
// Required method
fn cursor_at(&self, offset: u64) -> Self::Cursor<'_>;
}
Expand description
A sliceable I/O resource: we can ask for a Read at a given offset.
Required Associated Types§
sourcetype Cursor<'a>: Read + 'a
where
Self: 'a
type Cursor<'a>: Read + 'a where Self: 'a
The type of Read returned by HasCursor::cursor_at.
Required Methods§
Object Safety§
This trait is not object safe.