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