Adder

Trait Adder 

Source
pub trait Adder {
    // Required method
    async fn add(&self, a: i32, b: i32) -> i32;
}
Expand description

Simple arithmetic service used for testing.

Required Methods§

Source

async fn add(&self, a: i32, b: i32) -> i32

Add two numbers.

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.

Implementors§