1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::ValueSmallUnsigned;
use std::ops::Deref;

impl PartialEq<u16> for ValueSmallUnsigned {
    fn eq(&self, other: &u16) -> bool {
        match self.deref() {
            Some(v) => v == other,
            None => false,
        }
    }
}
impl PartialEq<Option<u16>> for ValueSmallUnsigned {
    fn eq(&self, other: &Option<u16>) -> bool {
        self.deref() == other
    }
}