lifetimed-bytes 0.1.0

Bytes, but with attached lifetime
Documentation
1
2
3
4
5
6
7
8
9
10
use lifetimed_bytes::Bytes;

fn main() {
    let v = b"hello".to_vec();
    let b = Bytes::from(v.as_slice());

    drop(v);

    println!("oops: {:?}", b);
}