arel 0.3.8

a sql orm base sqlx
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::ValueSmallInt;
use std::ops::Deref;

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