pub trait CursorRead: AsRef<[u8]> + Sized {
// Provided method
fn into_cursor(self) -> Cursor<Self> { ... }
}
Provided Methods§
Sourcefn into_cursor(self) -> Cursor<Self>
fn into_cursor(self) -> Cursor<Self>
Turns any [u8]
data such as a String
into a
Cursor
which implements
BufRead
. Intended to be chained with
into_parser
.
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.