remove trait bounds on AllocBytes
This commit is contained in:
parent
235770c851
commit
38181cba79
1 changed files with 1 additions and 3 deletions
|
@ -29,9 +29,7 @@ use provenance_map::*;
|
||||||
pub use init_mask::{InitChunk, InitChunkIter};
|
pub use init_mask::{InitChunk, InitChunkIter};
|
||||||
|
|
||||||
/// Functionality required for the bytes of an `Allocation`.
|
/// Functionality required for the bytes of an `Allocation`.
|
||||||
pub trait AllocBytes:
|
pub trait AllocBytes: Clone + fmt::Debug + Deref<Target = [u8]> + DerefMut<Target = [u8]> {
|
||||||
Clone + fmt::Debug + Eq + PartialEq + Hash + Deref<Target = [u8]> + DerefMut<Target = [u8]>
|
|
||||||
{
|
|
||||||
/// Create an `AllocBytes` from a slice of `u8`.
|
/// Create an `AllocBytes` from a slice of `u8`.
|
||||||
fn from_bytes<'a>(slice: impl Into<Cow<'a, [u8]>>, _align: Align) -> Self;
|
fn from_bytes<'a>(slice: impl Into<Cow<'a, [u8]>>, _align: Align) -> Self;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue