pub struct ValueBit { /* private fields */ }Expand description
A net is a driver in the design: a reference to a single position from
the output of a Cell.
Constant nets are represented as outputs of three singleton [Cell::Const] cells that are always present at fixed positions in the design.
Implementations§
Source§impl ValueBit
impl ValueBit
pub const UNDEF: ValueBit
pub const ZERO: ValueBit
pub const ONE: ValueBit
pub fn as_const(self) -> Option<ConstBit>
pub fn is_const(self) -> bool
pub fn visit(self, f: impl FnMut(ValueBit))
pub fn visit_mut(&mut self, f: impl FnMut(&mut ValueBit))
pub fn repeat(self, count: usize) -> Value
Trait Implementations§
Source§impl AsMut<ValueSlice> for ValueBit
impl AsMut<ValueSlice> for ValueBit
Source§fn as_mut(&mut self) -> &mut ValueSlice
fn as_mut(&mut self) -> &mut ValueSlice
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<ValueSlice> for ValueBit
impl AsRef<ValueSlice> for ValueBit
Source§fn as_ref(&self) -> &ValueSlice
fn as_ref(&self) -> &ValueSlice
Converts this type into a shared reference of the (usually inferred) input type.
impl Copy for ValueBit
impl Eq for ValueBit
Source§impl Extend<ValueBit> for Value
impl Extend<ValueBit> for Value
Source§fn extend<T: IntoIterator<Item = ValueBit>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = ValueBit>>(&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<ValueBit> for ControlNet
impl From<ValueBit> for ControlNet
Source§impl From<ValueBit> for RewriteResult
impl From<ValueBit> for RewriteResult
Source§impl FromIterator<ValueBit> for Value
impl FromIterator<ValueBit> for Value
Source§impl Ord for ValueBit
impl Ord for ValueBit
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 ValueBit
impl PartialOrd for ValueBit
impl StructuralPartialEq for ValueBit
Auto Trait Implementations§
impl Freeze for ValueBit
impl RefUnwindSafe for ValueBit
impl Send for ValueBit
impl Sync for ValueBit
impl Unpin for ValueBit
impl UnsafeUnpin for ValueBit
impl UnwindSafe for ValueBit
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.