[−][src]Struct buffered_offset_reader::BufOffsetReader
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,
R: Send,
impl<R> Sync for BufOffsetReader<R> where
R: Sync,
R: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,