Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maurolacy/integer-cbrt-rs

Integer cube root algorithm implemented for Rust integer primitives
https://github.com/maurolacy/integer-cbrt-rs

cbrt cube cuberoot icbrt integer root

Last synced: about 2 months ago
JSON representation

Integer cube root algorithm implemented for Rust integer primitives

Awesome Lists containing this project

README

        

# Integer cube root

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

Based on [integer-sqrt](https://crates.io/crates/integer-sqrt).

![ci badge](https://github.com/maurolacy/integer-cbrt-rs/workflows/Continuous%20integration/badge.svg)

## Example

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

assert_eq!(8u8.integer_cbrt(), 2);
```