Bind typed source functions with exact effect contracts during deterministic specialization; retain nominal operation identity and ordinary AIR verification. Add spec/RFC/grammar, checked Quick Reference examples, source/AIR conformance, package/hosted CLI tests, scheduler/GC coverage and documentation budgets.
7 lines
256 B
Rust
7 lines
256 B
Rust
module demo.static_functions
|
|
fn identity(value: u64) -> u64 effects [] { return value; }
|
|
fn apply<T, F: fn(T) -> T effects []>(value: T) -> T effects [] {
|
|
return F(move value);
|
|
}
|
|
fn main() -> u64 effects [] { return apply::<u64, fn identity>(42u64); }
|