File: lifetimes_multiple.expanded.rs

package info (click to toggle)
rust-async-recursion 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 332 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 369 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
use async_recursion::async_recursion;
#[must_use]
fn contains_value_2<'a, 'b, 'async_recursion, T: PartialEq>(
    value: &'b T,
    node: &'b Node<'a, T>,
) -> ::core::pin::Pin<Box<dyn ::core::future::Future<Output = bool> + 'async_recursion>>
where
    T: 'async_recursion,
    'b: 'async_recursion,
{
    Box::pin(async move { contains_value(value, node).await })
}