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