File: struct_methods.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 (21 lines) | stat: -rw-r--r-- 511 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use async_recursion::async_recursion;

struct S;

impl S {
    #[async_recursion]
    pub async fn all_of_the_above<'a, 'b, S, T>(
        &self,
        // Some references with / without lifetimes to generic parameters
        _x: &S,
        _y: &'b T,
        // Some generic parameters passed by value
        _w: S,
        _z: T,
        // A reference to a concrete type without a lifetime
        _p: &usize,
        // A reference to a concrete type with a lifetime
        _q: &'a u64,
    ) {
    }
}