summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/rust-mode/pafnw
blob: bea6dd2d84f9c3f071adacb18435255fc11fe219 (plain)
1
2
3
4
5
6
7
# -*- mode: snippet -*-
# name: pub async fn name<T>(x: T) where T: Clone { ... }
# key: pafnw
# --
pub async fn ${1:name}<${2:T}>(${3:x: T}) where ${4:T: Clone} {
    $0
}