Skip to main content

Ring

Trait Ring 

Source
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§

Source

fn lift(a: &Algebraic) -> Self

Source

fn plus(&self, o: &Self) -> Result<Self, String>

Source

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.

Implementors§