rect-lib 📐
A simple library for working with anything vaguely rectangular in rust.
Features 📦
-
Rectangle trait: a trait implementing all rectangle operations; see documentation.
-
BasicRectangle: a simple implementation of the
Rectangle
trait.
Usage 🚀
Add the crate to your Cargo.toml
:
[]
= "0.1.1"
or use cargo add
:
Then, you can use the Rectangle
trait in your code:
use Rectangle;
License 📜
This project is licensed under GPL-v3.