ra_ap_parser 0.0.327

The Rust parser for rust-analyzer.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn foo() {
    let (mut a, mut b) = (0, 1);
    (b, a, ..) = (a, b);
    (_) = ..;
    struct S { a: i32 }
    S { .. } = S { ..S::default() };
    Some(..) = Some(0);
    Ok(_) = 0;
    let (a, b);
    [a, .., b] = [1, .., 2];
    (_, _) = (a, b);
    (_) = (a, b);
    _ = (a, b);
}