macro_rules! positive_isize {
($e:expr $(,)?) => { ... };
}Expand description
Creates a PositiveIsize checked at compile time.
This macro takes a single argument that must be a positive isize.
Negative values will cause a compile error.
use sign_bound::{PositiveIsize, positive_isize};
let val: PositiveIsize = positive_isize!(123);