mybatis-sql 2.0.1

mybatis sql
Documentation
use crate::ops::Not;

use crate::ops::Value;

impl Not for Value {
    type Output = bool;

    fn op_not(self) -> Self::Output {
        match self {
            Value::Boolean(b) => !b,
            _ => true,
        }
    }
}

impl Not for &Value {
    type Output = bool;
    fn op_not(self) -> Self::Output {
        match self {
            Value::Boolean(b) => !*b,
            _ => true,
        }
    }
}

impl Not for &mut Value {
    type Output = bool;
    fn op_not(self) -> Self::Output {
        match self {
            Value::Boolean(b) => !*b,
            _ => true,
        }
    }
}