T1mVo / dynamic_range

A Rust library for handling various types of ranges dynamically.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dynamic_range

A Rust library for handling various types of ranges dynamically.

Usage

cargo add --git "https://github.com/T1mVo/dynamic_range" --tag v0.2.0

Example

use dynamic_range::DynamicRange;

fn main() {
    let range = DynamicRange::<u8>::try_from("..").expect("Could not parse range");

    for i in range.into_iter() {
        println!("{i}");
    }
}

License

Licensed under either of

at your option.

About

A Rust library for handling various types of ranges dynamically.

License:Apache License 2.0


Languages

Language:Rust 100.0%