File: generic_parameter.expanded.rs

package info (click to toggle)
rust-async-recursion 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 332 kB
  • sloc: makefile: 2
file content (16 lines) | stat: -rw-r--r-- 403 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use async_recursion::async_recursion;
#[must_use]
pub fn generic_parameter<'async_recursion, S: Marker + Send>(
    mut x: S,
) -> ::core::pin::Pin<
    Box<
        dyn ::core::future::Future<
            Output = u64,
        > + 'async_recursion + ::core::marker::Send,
    >,
>
where
    S: 'async_recursion,
{
    Box::pin(async move { if x.descend() { generic_parameter(x).await } else { 0 } })
}