File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,23 @@ pub trait PrimitiveNumber:
102102{
103103 /// An array of bytes used by methods like [`from_be_bytes`][Self::from_be_bytes] and
104104 /// [`to_be_bytes`][Self::to_be_bytes]. It is effectively `[u8; size_of::<Self>()]`.
105- type Bytes : core:: borrow:: Borrow < [ u8 ] > + core:: borrow:: BorrowMut < [ u8 ] > ;
105+ type Bytes : ' static
106+ + core:: borrow:: Borrow < [ u8 ] >
107+ + core:: borrow:: BorrowMut < [ u8 ] >
108+ + core:: cmp:: Eq
109+ + core:: cmp:: Ord
110+ + core:: cmp:: PartialEq < [ u8 ] >
111+ + core:: convert:: AsRef < [ u8 ] >
112+ + core:: convert:: AsMut < [ u8 ] >
113+ + core:: default:: Default
114+ + core:: fmt:: Debug
115+ + core:: hash:: Hash
116+ + core:: marker:: Copy
117+ + core:: marker:: Send
118+ + core:: marker:: Sync
119+ + core:: marker:: Unpin
120+ + core:: panic:: RefUnwindSafe
121+ + core:: panic:: UnwindSafe ;
106122
107123 /// Creates a number from its representation as a byte array in big endian.
108124 fn from_be_bytes ( bytes : Self :: Bytes ) -> Self ;
You can’t perform that action at this time.
0 commit comments