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::ValueDouble;
use std::ops::Deref;

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