Skip to main content

addition

Function addition 

Source
pub fn addition<T: Add<Output = T>>(one: T, two: T) -> T
Expand description

Adds one value with Add trait to the other

ยงExamples

let value = 1;
let value_two = 2;

assert_eq!(addition_lib::addition(value, value_two), 3);