soroban_spec_rust::trait

Function generate_trait

Source
pub fn generate_trait(name: &str, specs: &[&ScSpecFunctionV0]) -> TokenStream
Expand description

Constructs a token stream containing a single trait that has a function for every function spec.