Crates.io | integer-cbrt |
lib.rs | integer-cbrt |
version | 0.1.2 |
source | src |
created_at | 2021-03-05 19:39:10.278716 |
updated_at | 2021-03-05 23:35:45.281323 |
description | An implementation of integer cube root algorithm for primitive rust types |
homepage | |
repository | https://github.com/maurolacy/integer-cbrt-rs |
max_upload_size | |
id | 364498 |
size | 6,807 |
This module contains the single trait IntegerCubeRoot
and implements it
for primitive integer types.
Based on integer-sqrt.
// `use` trait to get functionality
use integer_cbrt::IntegerCubeRoot;
assert_eq!(8u8.integer_cbrt(), 2);