Go to file
Richard Dodd 2df2b3c365 Add CI badge 2020-09-09 11:04:37 +01:00
.github/workflows Create main.yml 2020-09-09 10:51:48 +01:00
benches benches: Add benchmarks 2020-09-07 20:16:28 -07:00
src Remove impl_isqrt macro 2020-09-08 13:56:05 +01:00
.gitignore First commit 2017-10-23 13:29:42 +01:00
Cargo.toml Update Cargo.toml 2020-09-09 20:42:00 +12:00
LICENSE-APACHE First commit 2017-10-23 13:29:42 +01:00
LICENSE-MIT First commit 2017-10-23 13:29:42 +01:00
README.md Add CI badge 2020-09-09 11:04:37 +01:00

README.md

Integer square root

This module contains the single trait IntegerSquareRoot and implements it for primitive integer types.

ci badge

Example

// `use` trait to get functionality
use integer_sqrt::IntegerSquareRoot;

assert_eq!(4u8.integer_sqrt(), 2);