Closed 0ndorio closed 5 years ago
Should we provide more convenience functions to unpack directly into common container types -- if possible --?
Potential candidates:
Bytes
Vec<u8>
String
str
Integer
i8
i16
List
Vec
[_: ExpectedLength]
Dict
Map
BTreeMap
Should be fixed through #16 as it introduced default implementations of FromBencode for common std data types.
FromBencode
Should we provide more convenience functions to unpack directly into common container types -- if possible --?
Potential candidates:
Bytes
toVec<u8>
,String
orstr
Integer
toi8
,i16
, ...List
toVec
or[_: ExpectedLength]
Dict
toMap
,BTreeMap