integer-sqrt-rs/README.md

17 lines
370 B
Markdown
Raw Permalink Normal View History

2017-10-23 08:14:24 -04:00
# Integer square root
This module contains the single trait `IntegerSquareRoot` and implements it
for primitive integer types.
2020-09-09 05:59:40 -04:00
![ci badge](https://github.com/derekdreery/integer-sqrt-rs/workflows/Continuous%20integration/badge.svg)
2017-10-23 08:14:24 -04:00
## Example
```rust
// `use` trait to get functionality
use integer_sqrt::IntegerSquareRoot;
assert_eq!(4u8.integer_sqrt(), 2);
```