Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/richard-uk1/integer-sqrt-rs

Integer square root algorithm implemented for rust integer primitives
https://github.com/richard-uk1/integer-sqrt-rs

algorithm rust

Last synced: 6 days ago
JSON representation

Integer square root algorithm implemented for rust integer primitives

Awesome Lists containing this project

README

        

# Integer square root

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

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

## Example

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

assert_eq!(4u8.integer_sqrt(), 2);
```