pub enum Trit {
Undef = -1,
Zero = 0,
One = 1,
}
Expand description
An extended binary value.
In addition to the usual 0
and 1
, the X
value (also known as “undef”) means that either 0
and 1
may be encountered. The undef value is used in both optimization and simulation, and its exact semantics
depends on the context where it is used.
Variants§
Implementations§
Trait Implementations§
Source§impl Extend<Trit> for Const
impl Extend<Trit> for Const
Source§fn extend<T: IntoIterator<Item = Trit>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Trit>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl From<Trit> for ParamValue
impl From<Trit> for ParamValue
Source§impl FromIterator<Trit> for Const
impl FromIterator<Trit> for Const
Source§impl Ord for Trit
impl Ord for Trit
Source§impl PartialOrd for Trit
impl PartialOrd for Trit
impl Copy for Trit
impl Eq for Trit
impl StructuralPartialEq for Trit
Auto Trait Implementations§
impl Freeze for Trit
impl RefUnwindSafe for Trit
impl Send for Trit
impl Sync for Trit
impl Unpin for Trit
impl UnwindSafe for Trit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.