Crates.io | integer-sqrt |
lib.rs | integer-sqrt |
version | 0.1.5 |
source | src |
created_at | 2017-10-23 12:29:54.830809 |
updated_at | 2020-09-09 09:44:05.291025 |
description | An implementation of integer square root algorithm for primitive rust types |
homepage | |
repository | https://github.com/derekdreery/integer-sqrt-rs |
max_upload_size | |
id | 36675 |
size | 6,742 |
This module contains the single trait IntegerSquareRoot
and implements it
for primitive integer types.
// `use` trait to get functionality
use integer_sqrt::IntegerSquareRoot;
assert_eq!(4u8.integer_sqrt(), 2);