pub struct Value(/* private fields */);
Expand description
A value is a (possibly empty) sequence of Net
s.
Implementations§
Source§impl Value
impl Value
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter( &self, ) -> impl DoubleEndedIterator<Item = Net> + ExactSizeIterator + '_
pub fn iter_mut( &mut self, ) -> impl DoubleEndedIterator<Item = &mut Net> + ExactSizeIterator + '_
pub fn push(&mut self, new_net: impl Into<Net>)
pub fn is_undef(&self) -> bool
pub fn is_zero(&self) -> bool
pub fn is_ones(&self) -> bool
pub fn lsb(&self) -> Net
pub fn msb(&self) -> Net
pub fn has_undef(&self) -> bool
pub fn as_const(&self) -> Option<Const>
pub fn as_net(&self) -> Option<Net>
pub fn unwrap_net(&self) -> Net
pub fn concat<'a>(&self, other: impl Into<Cow<'a, Value>>) -> Self
pub fn repeat(&self, count: usize) -> Self
pub fn slice(&self, range: impl RangeBounds<usize>) -> Value
pub fn zext(&self, width: usize) -> Self
pub fn sext(&self, width: usize) -> Self
pub fn shl<'a>(&self, other: impl Into<Cow<'a, Const>>, stride: u32) -> Value
pub fn ushr<'a>(&self, other: impl Into<Cow<'a, Const>>, stride: u32) -> Value
pub fn sshr<'a>(&self, other: impl Into<Cow<'a, Const>>, stride: u32) -> Value
pub fn xshr<'a>(&self, other: impl Into<Cow<'a, Const>>, stride: u32) -> Value
pub fn visit(&self, f: impl FnMut(Net))
pub fn visit_mut(&mut self, f: impl FnMut(&mut Net))
Trait Implementations§
Source§impl Extend<Net> for Value
impl Extend<Net> for Value
Source§fn extend<T: IntoIterator<Item = Net>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Net>>(&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 FromIterator<Net> for Value
impl FromIterator<Net> for Value
Source§impl<'a> IntoIterator for &'a Value
impl<'a> IntoIterator for &'a Value
Source§impl IntoIterator for Value
impl IntoIterator for Value
Source§impl Ord for Value
impl Ord for Value
Source§impl PartialOrd for Value
impl PartialOrd for Value
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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.