rsdiff-graphs 0.0.2

Computational graphs for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
    appellation: default <module>
    authors: @FL03
*/

#[test]
fn lib_compiles() {
    fn add<A, B, C>(lhs: A, rhs: B) -> C
    where
        A: core::ops::Add<B, Output = C>,
    {
        lhs + rhs
    }
    let result = add(2, 2);
    assert_eq!(result, 4);
}