summaryrefslogtreecommitdiffstats
path: root/third_party/rust/serde_bytes/tests/test_partialeq.rs
blob: 549764135ed54bd4352f7d033baae83f401cb2e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"..."
}