integer-sqrt

Crates.iointeger-sqrt
lib.rsinteger-sqrt
version0.1.5
sourcesrc
created_at2017-10-23 12:29:54.830809
updated_at2020-09-09 09:44:05.291025
descriptionAn implementation of integer square root algorithm for primitive rust types
homepage
repositoryhttps://github.com/derekdreery/integer-sqrt-rs
max_upload_size
id36675
size6,742
Richard Dodd (derekdreery)

documentation

README

Integer square root

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

Example

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

assert_eq!(4u8.integer_sqrt(), 2);
Commit count: 20

cargo fmt