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