addition-lib 0.1.0

Add your values with my function!
Documentation
//! # Addition module
//!
//! This module adds functionality to add values
//! that implement Add trait on them


use std::ops::Add;

/// 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);
///
/// ```
pub fn addition<T: Add<Output = T>>(one: T, two: T) -> T {
    one + two
}