pub trait ThresholdFor<T> {
type Error;
// Required method
fn check_threshold(
&self,
value: &T,
ref_value: &T,
) -> Result<(), Self::Error>;
}pub trait ThresholdFor<T> {
type Error;
// Required method
fn check_threshold(
&self,
value: &T,
ref_value: &T,
) -> Result<(), Self::Error>;
}