pub trait SquaredError<R = Self> {
type Output;
// Required method
fn squared_error(self, rhs: R) -> Self::Output;
// Provided method
fn _apply(self, rhs: R) -> Self::Output
where Self: Sized { ... }
}Expand description
trait to represent the operation
Required Associated Types§
Required Methods§
Sourcefn squared_error(self, rhs: R) -> Self::Output
fn squared_error(self, rhs: R) -> Self::Output
computes the operation