We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c89a430 commit bbeeaa2Copy full SHA for bbeeaa2
src/ops/bytes.rs
@@ -16,7 +16,6 @@ pub trait NumBytes:
16
+ Hash
17
+ Borrow<[u8]>
18
+ BorrowMut<[u8]>
19
- + Default
20
{
21
}
22
@@ -31,7 +30,7 @@ impl<T> NumBytes for T where
31
30
32
33
34
+ + ?Sized
35
36
37
@@ -94,7 +93,7 @@ pub trait ToBytes {
94
93
95
96
pub trait FromBytes: Sized {
97
- type Bytes: NumBytes;
+ type Bytes: NumBytes + ?Sized;
98
99
/// Create a number from its representation as a byte array in big endian.
100
///
0 commit comments