arel 0.3.2

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

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