[][src]Struct tinkv::util::ByteLineReader

pub struct ByteLineReader<B> { /* fields omitted */ }

Read byte lines from an instance of BufRead.

Unlike io::Lines, it simply return byte lines instead of string lines.

Ref: https://github.com/whitfin/bytelines/blob/master/src/lib.rs

Implementations

impl<B: BufRead> ByteLineReader<B>[src]

pub fn new(reader: B) -> Self[src]

Create a new ByteLineReader instance from given instance of BufRead

pub fn next_line(&mut self) -> Option<Result<&[u8]>>[src]

Trait Implementations

impl<B: BufRead> BufRead for ByteLineReader<B>[src]

impl<B: Debug> Debug for ByteLineReader<B>[src]

impl<B: BufRead> Read for ByteLineReader<B>[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for ByteLineReader<B> where
    B: RefUnwindSafe

impl<B> Send for ByteLineReader<B> where
    B: Send

impl<B> Sync for ByteLineReader<B> where
    B: Sync

impl<B> Unpin for ByteLineReader<B> where
    B: Unpin

impl<B> UnwindSafe for ByteLineReader<B> where
    B: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<R> ReadBytesExt for R where
    R: Read + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.