Debian Codegraph @

examples/letsref.rs

raw symbols SCIP
1 use encloserust-analyzer cargo enclose 1.2.1 crate/::encloserust-analyzer cargo enclose 1.2.1 enclose!;
2
3 fn mainrust-analyzer cargo enclose 1.2.1 main().() {
4 let mut clone_data = 2;
5 my_encloserust-analyzer cargo enclose 1.2.1 my_enclose().(encloserust-analyzer cargo enclose 1.2.1 enclose!!((ref clone_data => mut ref_clone_data) || {
6 // (ref clone_data => mut ref_clone_data) ->
7 // let ref mut ref_clone_data = clone_data;
8
9 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("#0 {:?}", ref_clone_data);
10 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().ref_clone_data += 2;
11 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("#1 {:?}", clone_data);
12
13 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(clone_data, 4);
14 }));
15
16 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(clone_data, 4);
17 }
18
19 #[inline]
20 fn my_encloserust-analyzer cargo enclose 1.2.1 my_enclose().<F: FnOncerust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/function/FnOnce#() -> R, R>(a: F) -> R {
21 a()
22 }