type_mel/
byte.rs

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