Trait polars_io::mmap::MmapBytesReader

source ·
pub trait MmapBytesReader: Read + Seek + Send + Sync {
    // Provided methods
    fn to_file(&self) -> Option<&File> { ... }
    fn to_bytes(&self) -> Option<&[u8]> { ... }
}
Expand description

Trait used to get a hold to file handler or to the underlying bytes without performing a Read.

Provided Methods§

source

fn to_file(&self) -> Option<&File>

source

fn to_bytes(&self) -> Option<&[u8]>

Implementations on Foreign Types§

source§

impl MmapBytesReader for File

source§

fn to_file(&self) -> Option<&File>

source§

impl MmapBytesReader for BufReader<File>

source§

fn to_file(&self) -> Option<&File>

source§

impl<T> MmapBytesReader for Cursor<T>
where T: AsRef<[u8]> + Send + Sync,

source§

fn to_bytes(&self) -> Option<&[u8]>

source§

impl<T: MmapBytesReader + ?Sized> MmapBytesReader for Box<T>

source§

fn to_file(&self) -> Option<&File>

source§

fn to_bytes(&self) -> Option<&[u8]>

source§

impl<T: MmapBytesReader> MmapBytesReader for &mut T

source§

fn to_file(&self) -> Option<&File>

source§

fn to_bytes(&self) -> Option<&[u8]>

Implementors§