The type parameter K on the method Tree::range has an implicit Sized constraint, but it unnecessarily constrains the flexibility of the API. For example, it's not currently possible to call Tree::range with a range of RangeBounds<[u8]> as [u8] is not sized.
Similar reasoning applies to the other two methods of Tree that this PR adjusts in a similar fashion.
See issue #1497.
The type parameter
K
on the methodTree::range
has an implicitSized
constraint, but it unnecessarily constrains the flexibility of the API. For example, it's not currently possible to callTree::range
with a range ofRangeBounds<[u8]>
as[u8]
is not sized.Similar reasoning applies to the other two methods of
Tree
that this PR adjusts in a similar fashion.