Trait Unique

Source
pub trait Unique: Int {
    type Output: Int;
}
Expand description

The Unique operator collapses one level of redundant zeroes in a balanced ternary representation. Using Unique every time we might get a redundant zero should get rid of any problems with non-unique representations of zero.

Required Associated Types§

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§

Source§

impl Unique for Term

Source§

impl Unique for Undefined

Source§

impl Unique for Zero<Term>

Source§

impl<N> Unique for Zero<Minus<N>>
where N: Unique + Int,

Source§

impl<N> Unique for Zero<Plus<N>>
where N: Unique + Int,

Source§

impl<N: Int> Unique for Minus<N>

Source§

impl<N: Int> Unique for Plus<N>

Source§

impl<N: Int> Unique for Zero<Zero<N>>
where Zero<N>: Unique,