Skip to main content

Computable

Trait Computable 

Source
pub trait Computable: Send + Sync {
    // Required method
    fn evaluate(&self, precision: u64) -> RnsRational;
}
Expand description

An oracle that can approximate a real number to arbitrary precision.

Required Methods§

Source

fn evaluate(&self, precision: u64) -> RnsRational

A rational r with |value - r| < 10^(-precision).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§