Skip to content

George-lewis/inbetween

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inbetween

A small macro that makes checking bounds look slightly nicer

Example

use inbetween::between;

let x = 33;

if between!(20 < x < 30) {
  println!("This prints!");
}

if between![0 < x > 10] {
  println!("This also prints!");
}

if between! { 99 > x >= 33 } {
  println!("...");
}

About

A small macro for testing bounds

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages