pub trait Polynomial<F: Field>:
Sized
+ Clone
+ Debug
+ Hash
+ PartialEq
+ Eq
+ Add
+ Neg
+ Zero
+ CanonicalSerialize
+ CanonicalDeserialize
+ for<'a> AddAssign<&'a Self>
+ for<'a> AddAssign<(F, &'a Self)>
+ for<'a> SubAssign<&'a Self> {
type Point: Sized + Clone + Ord + Debug + Sync + Hash;
// Required methods
fn degree(&self) -> usize;
fn evaluate(&self, point: &Self::Point) -> F;
}
Expand description
Describes the common interface for univariate and multivariate polynomials
Required Associated Types§
Required Methods§
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.