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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.