polars_io::mmap

Trait 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 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§