accio 0.1.0

Retrieves code blocks distributed to multiple sites
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use accio::*;

/*
this example demonstrates expanding statements
using code blocks from different paths. we can
differentiate code blocks by naming them.
*/

fn main() {
    let mut val = 1;
    println!("original value = {}", val);
    // expands the first scope
    accio!(firstScope);
    println!("value after first scope = {}", val);
    // expands the second scope
    accio!(secondScope);
    println!("value after second scope = {}", val);
}