arel 0.3.3

a sql orm base sqlx
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::value::Value;
use std::ops::Not;

impl Not for Value {
    type Output = Self;
    fn not(mut self) -> Self::Output {
        match &mut self {
            Value::Bool(v) => *v = !(v.clone()),
            _ => panic!("ops::not type not support, {:?}", self),
        }
        self
    }
}