strict-typing 0.1.0

A procedural macro for ensuring strict type safety.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict_typing::strict_types;

struct Score(f64);
struct Engine;

#[strict_types]
impl Engine {
    fn score(&self, id: u64) -> Score {
        Score(id as f64)
    }
}

fn main() {}