pub enum ConstBit {
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 AsMut<ConstSlice> for ConstBit
impl AsMut<ConstSlice> for ConstBit
Source§fn as_mut(&mut self) -> &mut ConstSlice
fn as_mut(&mut self) -> &mut ConstSlice
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<ConstSlice> for ConstBit
impl AsRef<ConstSlice> for ConstBit
Source§fn as_ref(&self) -> &ConstSlice
fn as_ref(&self) -> &ConstSlice
Converts this type into a shared reference of the (usually inferred) input type.
impl Copy for ConstBit
impl Eq for ConstBit
Source§impl Extend<ConstBit> for Const
impl Extend<ConstBit> for Const
Source§fn extend<T: IntoIterator<Item = ConstBit>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = ConstBit>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
🔬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<ConstBit> for ParamValue
impl From<ConstBit> for ParamValue
Source§impl FromIterator<ConstBit> for Const
impl FromIterator<ConstBit> for Const
Source§impl Ord for ConstBit
impl Ord for ConstBit
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ConstBit
impl PartialOrd for ConstBit
impl StructuralPartialEq for ConstBit
Auto Trait Implementations§
impl Freeze for ConstBit
impl RefUnwindSafe for ConstBit
impl Send for ConstBit
impl Sync for ConstBit
impl Unpin for ConstBit
impl UnsafeUnpin for ConstBit
impl UnwindSafe for ConstBit
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.