integer-sqrt 0.1.1

An implementation of integer square root algorithm for primitive rust types
Documentation

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

Example

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

# fn main() {
assert_eq!(4u8.integer_sqrt(), 2);
# }