mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
remove trait bounds on AllocBytes
This commit is contained in:
parent
235770c851
commit
38181cba79
@ -29,9 +29,7 @@ use provenance_map::*;
|
||||
pub use init_mask::{InitChunk, InitChunkIter};
|
||||
|
||||
/// Functionality required for the bytes of an `Allocation`.
|
||||
pub trait AllocBytes:
|
||||
Clone + fmt::Debug + Eq + PartialEq + Hash + Deref<Target = [u8]> + DerefMut<Target = [u8]>
|
||||
{
|
||||
pub trait AllocBytes: Clone + fmt::Debug + Deref<Target = [u8]> + DerefMut<Target = [u8]> {
|
||||
/// Create an `AllocBytes` from a slice of `u8`.
|
||||
fn from_bytes<'a>(slice: impl Into<Cow<'a, [u8]>>, _align: Align) -> Self;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user