2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-02-06 04:35:32 +00:00
This commit is contained in:
yjhmelody 2019-10-29 21:49:30 +08:00
parent b942d0a405
commit 021862dcc8

View file

@ -786,15 +786,14 @@ extension_trait! {
# }) }
```
"#]
fn min_by<F>(
fn min<F>(
self,
compare: F,
) -> impl Future<Output = Option<Self::Item>> [MinByFuture<Self, F, Self::Item>]
) -> impl Future<Output = Option<Self::Item>> [MinFuture<Self, F, Self::Item>]
where
Self: Sized,
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
{
MinByFuture::new(self, compare)
MinFuture::new(self)
}
#[doc = r#"