pub trait SternBrocotTree: From<URational<Self::T>> + FromIterator<Self::T> {
type T: Unsigned;
// Required methods
fn root() -> Self;
fn is_root(&self) -> bool;
fn eval(&self) -> URational<Self::T>;
fn down_left(&mut self, count: Self::T);
fn down_right(&mut self, count: Self::T);
fn up(&mut self, count: Self::T) -> Self::T;
}
Required Associated Types§
Required Methods§
fn root() -> Self
fn is_root(&self) -> bool
fn eval(&self) -> URational<Self::T>
fn down_left(&mut self, count: Self::T)
fn down_right(&mut self, count: Self::T)
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.