Skip to content

The code to go along with blog post on creating a arithmetic system for units of length in Rust

License

Notifications You must be signed in to change notification settings

code-ape/rust_length_arithmetic_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rust Length Arithmetic Example

This repo holds the code related to my article on creating an arithmetic system for lengths in Rust to guarantee safety and correctness of computation along with clean code without adding overhead. To read the article please visit: ferrisellis.com/posts/rust-implementing-units-for-types/

This code was tested on Rustc 1.15.1 stable.

To run this code do:

rustc example.rs
./example

About

The code to go along with blog post on creating a arithmetic system for units of length in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages