arel 0.3.3

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

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