pub trait Adder {
// Required method
async fn add(&self, a: i32, b: i32) -> i32;
}Expand description
Simple arithmetic service used for testing.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.