pub struct ValueSlice(/* private fields */);Implementations§
Source§impl ValueSlice
impl ValueSlice
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter( &self, ) -> impl DoubleEndedIterator<Item = ValueBit> + ExactSizeIterator + '_
pub fn iter_mut( &mut self, ) -> impl DoubleEndedIterator<Item = &mut ValueBit> + ExactSizeIterator + '_
pub fn is_undef(&self) -> bool
pub fn is_zero(&self) -> bool
pub fn is_ones(&self) -> bool
pub fn lsb(&self) -> ValueBit
pub fn msb(&self) -> ValueBit
pub fn has_undef(&self) -> bool
pub fn as_const(&self) -> Option<Const>
pub fn as_net(&self) -> Option<ValueBit>
pub fn unwrap_net(&self) -> ValueBit
pub fn concat(&self, other: impl AsRef<ValueSlice>) -> Value
pub fn repeat(&self, count: usize) -> Value
pub fn slice(&self, range: impl RangeBounds<usize>) -> Value
pub fn zext(&self, width: usize) -> Value
pub fn sext(&self, width: usize) -> Value
pub fn shl(&self, other: impl AsRef<ConstSlice>, stride: u32) -> Value
pub fn ushr(&self, other: impl AsRef<ConstSlice>, stride: u32) -> Value
pub fn sshr(&self, other: impl AsRef<ConstSlice>, stride: u32) -> Value
pub fn xshr(&self, other: impl AsRef<ConstSlice>, stride: u32) -> Value
pub fn visit(&self, f: impl FnMut(ValueBit))
pub fn visit_mut(&mut self, f: impl FnMut(&mut ValueBit))
pub fn copy_from_slice(&mut self, other: impl AsRef<ValueSlice>)
Trait Implementations§
Source§impl AsMut<ValueSlice> for ValueSlice
impl AsMut<ValueSlice> for ValueSlice
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 AsMut<ValueSlice> for Value
impl AsMut<ValueSlice> for Value
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 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 ValueSlice
impl AsRef<ValueSlice> for ValueSlice
Source§fn as_ref(&self) -> &ValueSlice
fn as_ref(&self) -> &ValueSlice
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<ValueSlice> for Value
impl AsRef<ValueSlice> for Value
Source§fn as_ref(&self) -> &ValueSlice
fn as_ref(&self) -> &ValueSlice
Converts this type into a shared 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.
Source§impl Borrow<ValueSlice> for Value
impl Borrow<ValueSlice> for Value
Source§fn borrow(&self) -> &ValueSlice
fn borrow(&self) -> &ValueSlice
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<ValueSlice> for Value
impl BorrowMut<ValueSlice> for Value
Source§fn borrow_mut(&mut self) -> &mut ValueSlice
fn borrow_mut(&mut self) -> &mut ValueSlice
Mutably borrows from an owned value. Read more
impl Eq for ValueSlice
Source§impl From<&ValueSlice> for Value
impl From<&ValueSlice> for Value
Source§fn from(value: &ValueSlice) -> Self
fn from(value: &ValueSlice) -> Self
Converts to this type from the input type.
Source§impl Hash for ValueSlice
impl Hash for ValueSlice
Source§impl<Idx, Wrap> Index<Idx> for ValueSlice
impl<Idx, Wrap> Index<Idx> for ValueSlice
Source§impl<Idx, Wrap> IndexMut<Idx> for ValueSlice
impl<Idx, Wrap> IndexMut<Idx> for ValueSlice
Source§impl<'a> IntoIterator for &'a ValueSlice
impl<'a> IntoIterator for &'a ValueSlice
Source§impl Ord for ValueSlice
impl Ord for ValueSlice
Source§impl PartialEq for ValueSlice
impl PartialEq for ValueSlice
Source§impl PartialOrd for ValueSlice
impl PartialOrd for ValueSlice
impl StructuralPartialEq for ValueSlice
Source§impl ToOwned for ValueSlice
impl ToOwned for ValueSlice
Source§impl TransparentWrapper<[ValueBit]> for ValueSlice
impl TransparentWrapper<[ValueBit]> for ValueSlice
§fn wrap_ref(s: &Inner) -> &Self
fn wrap_ref(s: &Inner) -> &Self
Convert a reference to the inner type into a reference to the wrapper
type.
§fn wrap_mut(s: &mut Inner) -> &mut Self
fn wrap_mut(s: &mut Inner) -> &mut Self
Convert a mutable reference to the inner type into a mutable reference to
the wrapper type.
§fn peel_ref(s: &Self) -> &Inner
fn peel_ref(s: &Self) -> &Inner
Convert a reference to the wrapper type into a reference to the inner
type.
§fn peel_mut(s: &mut Self) -> &mut Inner
fn peel_mut(s: &mut Self) -> &mut Inner
Convert a mutable reference to the wrapper type into a mutable reference
to the inner type.
Auto Trait Implementations§
impl !Sized for ValueSlice
impl Freeze for ValueSlice
impl RefUnwindSafe for ValueSlice
impl Send for ValueSlice
impl Sync for ValueSlice
impl Unpin for ValueSlice
impl UnsafeUnpin for ValueSlice
impl UnwindSafe for ValueSlice
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