[][src]Struct buffered_offset_reader::BufOffsetReader

pub struct BufOffsetReader<R: OffsetRead> { /* fields omitted */ }

Methods

impl<R: OffsetRead> BufOffsetReader<R>[src]

pub fn new(inner: R) -> BufOffsetReader<R>[src]

Creates a new buffered reader with default buffer capacity (currently 8KB).

pub fn with_capacity(cap: usize, inner: R) -> BufOffsetReader<R>[src]

pub fn capacity(&self) -> usize[src]

pub fn contains(&self, r: Range<usize>) -> bool[src]

Check whether the specified data range (of the underlying file) is currently contained in the reader's in-memory buffer.

pub fn clear(&mut self)[src]

Trait Implementations

impl<R: OffsetRead> OffsetReadMut for BufOffsetReader<R>[src]

Auto Trait Implementations

impl<R> Send for BufOffsetReader<R> where
    R: Send

impl<R> Sync for BufOffsetReader<R> where
    R: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.