std: Deprecate result::fold
This function has seen very little use and it seems better to explore this functionality through iterator adaptors instead of specialized functions.
This commit is contained in:
@@ -968,6 +968,9 @@ impl<A, E, V: FromIterator<A>> FromIterator<Result<A, E>> for Result<V, E> {
|
|||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "result_fold",
|
#[unstable(feature = "result_fold",
|
||||||
reason = "unclear if this function should exist")]
|
reason = "unclear if this function should exist")]
|
||||||
|
#[deprecated(since = "1.2.0",
|
||||||
|
reason = "has not seen enough usage to justify its position in \
|
||||||
|
the standard library")]
|
||||||
pub fn fold<T,
|
pub fn fold<T,
|
||||||
V,
|
V,
|
||||||
E,
|
E,
|
||||||
|
|||||||
Reference in New Issue
Block a user