[][src]Trait csv::BorrowBytes

pub trait BorrowBytes {
    fn borrow_bytes<'a>(&'a self) -> &'a [u8];
}

A trait that permits borrowing byte vectors.

This is useful for providing an API that can abstract over Unicode strings and byte strings.

Required methods

fn borrow_bytes<'a>(&'a self) -> &'a [u8]

Borrow a byte vector.

Loading content...

Implementations on Foreign Types

impl BorrowBytes for String[src]

impl BorrowBytes for str[src]

impl BorrowBytes for [u8][src]

impl<'a, B: ?Sized> BorrowBytes for Cow<'a, B> where
    B: BorrowBytes + ToOwned,
    <B as ToOwned>::Owned: BorrowBytes
[src]

impl<'a, T: ?Sized + BorrowBytes> BorrowBytes for &'a T[src]

Loading content...

Implementors

impl BorrowBytes for ByteString[src]

Loading content...