type_mel/
i32.rs

1use melodium_core::*;
2use melodium_macro::mel_function;
3
4/// Return the smallest value that can be represented by `i32`.
5///
6/// The smallest value for `i32` is `-2147483648`.
7#[mel_function]
8pub fn min() -> i32 {
9    i32::MIN
10}
11
12/// Return the largest value that can be represented by `i32`.
13///
14/// The largest value for `i32` is `2147483647`.
15#[mel_function]
16pub fn max() -> i32 {
17    i32::MAX
18}