pub trait ModelBuilder {
type Model;
// Required methods
fn with_x(self, x: &ModelMatrix) -> Self;
fn with_y(self, y: &ModelMatrix) -> Self;
fn with_weights(self, weights: &ModelMatrix) -> Self;
fn with_alpha<A: Into<Alpha64>>(self, alpha: A) -> Self;
fn build(self) -> Self::Model;
}Required Associated Types§
Required Methods§
fn with_x(self, x: &ModelMatrix) -> Self
fn with_y(self, y: &ModelMatrix) -> Self
fn with_weights(self, weights: &ModelMatrix) -> Self
fn with_alpha<A: Into<Alpha64>>(self, alpha: A) -> Self
fn build(self) -> Self::Model
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.