1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This software may be used and distributed according to the terms of the * GNU General Public License version 2. */ //! Implement [`BytesOwner`] for common types. use crate::BytesOwner; use memmap::Mmap; impl BytesOwner for Vec<u8> {} impl BytesOwner for Box<[u8]> {} impl BytesOwner for String {} impl BytesOwner for Mmap {}