CursorRead

Trait CursorRead 

Source
pub trait CursorRead: AsRef<[u8]> + Sized {
    // Provided method
    fn into_cursor(self) -> Cursor<Self> { ... }
}

Provided Methods§

Source

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.

Implementors§

Source§

impl<T: AsRef<[u8]>> CursorRead for T