pub trait EvaluatablePolynomial<C, Out>: Polynomial<C> {
type EvaluationPoint: ?Sized;
// Required method
fn evaluate_at_point(
&self,
point: &Self::EvaluationPoint,
) -> Result<Out, EvaluationError>;
}Required Associated Types§
Sourcetype EvaluationPoint: ?Sized
type EvaluationPoint: ?Sized
The type of points a polynomial can be evaluated on.
For univariate polynomials this typically is Out,
for multivariate this is [Out].
Required Methods§
Sourcefn evaluate_at_point(
&self,
point: &Self::EvaluationPoint,
) -> Result<Out, EvaluationError>
fn evaluate_at_point( &self, point: &Self::EvaluationPoint, ) -> Result<Out, EvaluationError>
Evaluates the polynomial at the given point.
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.