integer-cbrt

Crates.iointeger-cbrt
lib.rsinteger-cbrt
version0.1.2
sourcesrc
created_at2021-03-05 19:39:10.278716
updated_at2021-03-05 23:35:45.281323
descriptionAn implementation of integer cube root algorithm for primitive rust types
homepage
repositoryhttps://github.com/maurolacy/integer-cbrt-rs
max_upload_size
id364498
size6,807
Mauro Lacy (maurolacy)

documentation

README

Integer cube root

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

Based on integer-sqrt.

ci badge

Example

// `use` trait to get functionality
use integer_cbrt::IntegerCubeRoot;

assert_eq!(8u8.integer_cbrt(), 2);
Commit count: 14

cargo fmt