pub struct ConstSlice { /* private fields */ }Implementations§
Source§impl ConstSlice
impl ConstSlice
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter( &self, ) -> impl DoubleEndedIterator<Item = ConstBit> + ExactSizeIterator + '_
pub fn lsb(&self) -> ConstBit
pub fn msb(&self) -> ConstBit
pub fn is_zero(&self) -> bool
pub fn is_ones(&self) -> bool
pub fn is_undef(&self) -> bool
pub fn has_undef(&self) -> bool
pub fn as_power_of_two(&self) -> Option<u32>
pub fn concat(&self, other: impl AsRef<ConstSlice>) -> Const
pub fn repeat(&self, count: usize) -> Const
pub fn adc(&self, other: impl AsRef<ConstSlice>, ci: ConstBit) -> Const
pub fn eq_inner(&self, other: impl AsRef<ConstSlice>) -> ConstBit
pub fn ult(&self, other: impl AsRef<ConstSlice>) -> ConstBit
pub fn slt(&self, other: impl AsRef<ConstSlice>) -> ConstBit
pub fn mul(&self, other: impl AsRef<ConstSlice>) -> Const
pub fn copy_from_slice(&mut self, other: impl AsRef<ConstSlice>)
Trait Implementations§
Source§impl AsMut<ConstSlice> for ConstSlice
impl AsMut<ConstSlice> for ConstSlice
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 AsMut<ConstSlice> for Const
impl AsMut<ConstSlice> for Const
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 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 ConstSlice
impl AsRef<ConstSlice> for ConstSlice
Source§fn as_ref(&self) -> &ConstSlice
fn as_ref(&self) -> &ConstSlice
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<ConstSlice> for Const
impl AsRef<ConstSlice> for Const
Source§fn as_ref(&self) -> &ConstSlice
fn as_ref(&self) -> &ConstSlice
Converts this type into a shared 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.
Source§impl<Rhs: AsRef<ConstSlice>> BitAnd<Rhs> for &ConstSlice
impl<Rhs: AsRef<ConstSlice>> BitAnd<Rhs> for &ConstSlice
Source§impl<Rhs: AsRef<ConstSlice>> BitOr<Rhs> for &ConstSlice
impl<Rhs: AsRef<ConstSlice>> BitOr<Rhs> for &ConstSlice
Source§impl<Rhs: AsRef<ConstSlice>> BitXor<Rhs> for &ConstSlice
impl<Rhs: AsRef<ConstSlice>> BitXor<Rhs> for &ConstSlice
Source§impl Borrow<ConstSlice> for Const
impl Borrow<ConstSlice> for Const
Source§fn borrow(&self) -> &ConstSlice
fn borrow(&self) -> &ConstSlice
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<ConstSlice> for Const
impl BorrowMut<ConstSlice> for Const
Source§fn borrow_mut(&mut self) -> &mut ConstSlice
fn borrow_mut(&mut self) -> &mut ConstSlice
Mutably borrows from an owned value. Read more
Source§impl Debug for ConstSlice
impl Debug for ConstSlice
Source§impl Display for ConstSlice
impl Display for ConstSlice
impl Eq for ConstSlice
Source§impl<'a> From<&'a ConstSlice> for Cow<'a, ConstSlice>
impl<'a> From<&'a ConstSlice> for Cow<'a, ConstSlice>
Source§fn from(value: &'a ConstSlice) -> Self
fn from(value: &'a ConstSlice) -> Self
Converts to this type from the input type.
Source§impl From<&ConstSlice> for Value
impl From<&ConstSlice> for Value
Source§fn from(value: &ConstSlice) -> Self
fn from(value: &ConstSlice) -> Self
Converts to this type from the input type.
Source§impl From<&ConstSlice> for ParamValue
impl From<&ConstSlice> for ParamValue
Source§fn from(value: &ConstSlice) -> Self
fn from(value: &ConstSlice) -> Self
Converts to this type from the input type.
Source§impl Hash for ConstSlice
impl Hash for ConstSlice
Source§impl<Idx, Wrap> Index<Idx> for ConstSlice
impl<Idx, Wrap> Index<Idx> for ConstSlice
Source§impl<Idx, Wrap> IndexMut<Idx> for ConstSlice
impl<Idx, Wrap> IndexMut<Idx> for ConstSlice
Source§impl<'a> IntoIterator for &'a ConstSlice
impl<'a> IntoIterator for &'a ConstSlice
Source§impl Not for &ConstSlice
impl Not for &ConstSlice
Source§impl Ord for ConstSlice
impl Ord for ConstSlice
Source§impl PartialEq for ConstSlice
impl PartialEq for ConstSlice
Source§impl PartialOrd for ConstSlice
impl PartialOrd for ConstSlice
impl StructuralPartialEq for ConstSlice
Source§impl ToOwned for ConstSlice
impl ToOwned for ConstSlice
Source§impl TransparentWrapper<[ConstBit]> for ConstSlice
impl TransparentWrapper<[ConstBit]> for ConstSlice
§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.
Source§impl TryFrom<&ConstSlice> for u64
impl TryFrom<&ConstSlice> for u64
Source§type Error = ConstToIntError
type Error = ConstToIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<&ConstSlice> for i64
impl TryFrom<&ConstSlice> for i64
Source§type Error = ConstToIntError
type Error = ConstToIntError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !Sized for ConstSlice
impl Freeze for ConstSlice
impl RefUnwindSafe for ConstSlice
impl Send for ConstSlice
impl Sync for ConstSlice
impl Unpin for ConstSlice
impl UnsafeUnpin for ConstSlice
impl UnwindSafe for ConstSlice
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
§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.