We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3272634 commit 2c679b4Copy full SHA for 2c679b4
src/lib.rs
@@ -58,23 +58,29 @@ file accesses during a memoized call. As a result, we can reuse the result of a
58
other files change.
59
60
```
61
-# /*
62
use comemo::{memoize, track, Tracked};
63
64
/// Evaluate a `.calc` script.
65
#[memoize]
66
fn evaluate(script: &str, files: Tracked<Files>) -> i32 {
+ # /*
67
...
68
+ # */
69
+ # 0
70
}
71
72
+# struct Files;
73
+
74
#[track]
75
impl Files {
76
/// Read a file from storage.
77
fn read(&self, path: &str) -> String {
78
79
80
81
+ # String::new()
82
83
-# */
84
85
86
For the full example see [`examples/calc.rs`][calc].
0 commit comments