pub trait Ring: Clone {
// Required methods
fn lift(a: &Algebraic) -> Self;
fn plus(&self, o: &Self) -> Result<Self, String>;
fn times(&self, o: &Self) -> Result<Self, String>;
}Expand description
What a polynomial over the slots evaluates in: algebraic numbers, polynomials in one variable, polynomials over the slots, values along a tail.
Required Methods§
fn lift(a: &Algebraic) -> Self
fn plus(&self, o: &Self) -> Result<Self, String>
fn times(&self, o: &Self) -> Result<Self, String>
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.