#[derive(Input)]
{
// Attributes available to this derive:
#[inc_complete]
}
Expand description
Derive macro for Input computation
Usage:
#[derive(Input)]
#[inc_complete(id = 0, output = i32, storage = MyStorage)]
struct MyInput;This generates a call to define_input!(0, MyInput -> i32, MyStorage)
which provides the actual implementation.
Required attributes:
id: The unique computation ID (integer)output: The output typestorage: The storage type
Optional attribute:
assume_changed: If present, indicates that the input is assumed to have changed