pub type PartialEqFnTyped<T> = fn(left: &T, right: &T) -> bool;
Function to check if two values are partially equal