pub trait EvalTypes {
type Coeff;
type Eval;
type EvalInfo;
// Required methods
fn prep(pts: impl Iterator<Item = Self::Eval>) -> Self::EvalInfo;
fn post(
out: &mut impl Extend<Self::Eval>,
coeffs: &[Self::Coeff],
info: &Self::EvalInfo,
) -> Result<()>;
}Expand description
Trait for evaluating polynomials over (possibly) a different domain.
Evaluation is divided into pre-processing EvalTypes::prep stage, which depends only on the
evaluation points, and the actual evaluation phase EvalTypes::post.
Typically the provided blanket implementations for EvalTrait should be sufficient,
unless you care creating a new polynomial type.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".