comfy_bounded_ints/types/u128/deref.rs
1use std::ops::Deref;
2use crate::prelude::Bound_u128;
3
4impl<const MIN: u128, const MAX: u128> Deref for Bound_u128<MIN, MAX> {
5 type Target = u128;
6
7 #[inline(always)]
8 #[cfg_attr(feature = "no_panic", no_panic::no_panic)]
9 fn deref(&self) -> &Self::Target {
10 return &self.inner;
11 }
12}
13
14#[test]
15fn test_deref() {
16 use crate::types::test_macros::deref::test_unsigned_deref;
17
18 test_unsigned_deref!(Bound_u128);
19}