serde_bytes 0.11.2

Optimized handling of `&[u8]` and `Vec<u8>` for Serde
Documentation
use serde_bytes::{Bytes, ByteBuf};

fn _bytes_eq_slice(bytes: &Bytes, slice: &[u8]) -> bool {
    bytes == slice
}

fn _bytebuf_eq_vec(bytebuf: ByteBuf, vec: Vec<u8>) -> bool {
    bytebuf == vec
}

fn _bytes_eq_bytestring(bytes: &Bytes) -> bool {
    bytes == b"..."
}