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

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