pub trait WorkingTypeFor<R: Ring>: WorkingType {
// Required methods
fn from_ring(&self, e: &R::Element, r: &R) -> Self::Element;
fn to_ring(s: &Self::Element, r: &R) -> R::Element;
}
Expand description
This trait facilitates the conversion between the ring of the lattice and the ring used internally.
Required Methods§
fn from_ring(&self, e: &R::Element, r: &R) -> Self::Element
fn to_ring(s: &Self::Element, r: &R) -> R::Element
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.