You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
566: Generalize the trait bounds of `Seq` r=jonasbb a=jonasbb
Generalize the trait bounds of `Seq` to allow for more flexible. Instead of forcing the inner type to be a tuple, take anything convertible to/from a tuple. This can be expressed using the
Closes#565
Co-authored-by: Jonas Bushart <[email protected]>
/// However, sometimes this is not possible due to type constraints, e.g., if the type implements neither [`Hash`] nor [`Ord`].
2099
2099
/// Another use case is deserializing a map with duplicate keys.
2100
2100
///
2101
-
/// The implementation is generic using the [`FromIterator`] and [`IntoIterator`] traits.
2102
-
/// Therefore, all of [`Vec`], [`VecDeque`](std::collections::VecDeque), and [`LinkedList`](std::collections::LinkedList) and anything which implements those are supported.
2103
-
///
2104
2101
/// # Examples
2105
2102
///
2106
2103
/// `Wrapper` does not implement [`Hash`] nor [`Ord`], thus prohibiting the use [`HashMap`] or [`BTreeMap`].
0 commit comments