arel 0.3.1

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

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