blob: 91e7b9124a278af14b2364bc45e8711967a77eab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Types and implementations generated by the `gen_program!` macro
> This module only exists on `docs.rs`, and describes the types generated by the `gen_program!` macro, which are located in the crate where you use Mingling, accessed via `crate::*`
You can access them like this:
```rust
# pub struct ThisProgram;
# impl ThisProgram { fn new() -> Self { ThisProgram } }
// main.rs / lib.rs
// Use them here via crate::*
let mut program = crate::ThisProgram::new();
// `ThisProgram` is generated here
// |
// vvvvvvvvvvvv
// gen_program!();
```
|