Skip to main content

ConstSlice

Struct ConstSlice 

Source
pub struct ConstSlice { /* private fields */ }

Implementations§

Source§

impl ConstSlice

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Source

pub fn iter( &self, ) -> impl DoubleEndedIterator<Item = ConstBit> + ExactSizeIterator + '_

Source

pub fn lsb(&self) -> ConstBit

Source

pub fn msb(&self) -> ConstBit

Source

pub fn is_zero(&self) -> bool

Source

pub fn is_ones(&self) -> bool

Source

pub fn is_undef(&self) -> bool

Source

pub fn has_undef(&self) -> bool

Source

pub fn as_power_of_two(&self) -> Option<u32>

Source

pub fn concat(&self, other: impl AsRef<ConstSlice>) -> Const

Source

pub fn repeat(&self, count: usize) -> Const

Source

pub fn adc(&self, other: impl AsRef<ConstSlice>, ci: ConstBit) -> Const

Source

pub fn eq_inner(&self, other: impl AsRef<ConstSlice>) -> ConstBit

Source

pub fn ult(&self, other: impl AsRef<ConstSlice>) -> ConstBit

Source

pub fn slt(&self, other: impl AsRef<ConstSlice>) -> ConstBit

Source

pub fn mul(&self, other: impl AsRef<ConstSlice>) -> Const

Source

pub fn copy_from_slice(&mut self, other: impl AsRef<ConstSlice>)

Trait Implementations§

Source§

impl AsMut<ConstSlice> for ConstSlice

Source§

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

Source§

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

Source§

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

Source§

fn as_ref(&self) -> &ConstSlice

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ConstSlice> for Const

Source§

fn as_ref(&self) -> &ConstSlice

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ConstSlice> for ConstBit

Source§

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

Source§

type Output = Const

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Rhs) -> Self::Output

Performs the & operation. Read more
Source§

impl<Rhs: AsRef<ConstSlice>> BitOr<Rhs> for &ConstSlice

Source§

type Output = Const

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Rhs) -> Self::Output

Performs the | operation. Read more
Source§

impl<Rhs: AsRef<ConstSlice>> BitXor<Rhs> for &ConstSlice

Source§

type Output = Const

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Rhs) -> Self::Output

Performs the ^ operation. Read more
Source§

impl Borrow<ConstSlice> for Const

Source§

fn borrow(&self) -> &ConstSlice

Immutably borrows from an owned value. Read more
Source§

impl BorrowMut<ConstSlice> for Const

Source§

fn borrow_mut(&mut self) -> &mut ConstSlice

Mutably borrows from an owned value. Read more
Source§

impl Debug for ConstSlice

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ConstSlice

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ConstSlice

Source§

impl<'a> From<&'a ConstSlice> for Cow<'a, ConstSlice>

Source§

fn from(value: &'a ConstSlice) -> Self

Converts to this type from the input type.
Source§

impl From<&ConstSlice> for Value

Source§

fn from(value: &ConstSlice) -> Self

Converts to this type from the input type.
Source§

impl From<&ConstSlice> for ParamValue

Source§

fn from(value: &ConstSlice) -> Self

Converts to this type from the input type.
Source§

impl Hash for ConstSlice

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
Source§

impl<Idx, Wrap> Index<Idx> for ConstSlice
where Idx: SliceIndex<[ConstBit], Output = Wrap>, Wrap: ConstIndexWrapper + 'static + ?Sized,

Source§

type Output = <Wrap as ConstIndexWrapper>::Output

The returned type after indexing.
Source§

fn index(&self, index: Idx) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<Idx, Wrap> IndexMut<Idx> for ConstSlice
where Idx: SliceIndex<[ConstBit], Output = Wrap>, Wrap: ConstIndexWrapper + 'static + ?Sized,

Source§

fn index_mut(&mut self, index: Idx) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl<'a> IntoIterator for &'a ConstSlice

Source§

type Item = ConstBit

The type of the elements being iterated over.
Source§

type IntoIter = Copied<Iter<'a, ConstBit>>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl Not for &ConstSlice

Source§

type Output = Const

The resulting type after applying the ! operator.
Source§

fn not(self) -> Const

Performs the unary ! operation. Read more
Source§

impl Ord for ConstSlice

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
Source§

impl PartialEq for ConstSlice

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for ConstSlice

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for ConstSlice

Source§

impl ToOwned for ConstSlice

Source§

type Owned = Const

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> Self::Owned

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§

fn clone_into(&self, target: &mut Self::Owned)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl TransparentWrapper<[ConstBit]> for ConstSlice

§

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

Convert a mutable reference to the inner type into a mutable reference to the wrapper type.
§

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

Convert a mutable reference to the wrapper type into a mutable reference to the inner type.
Source§

impl TryFrom<&ConstSlice> for u64

Source§

type Error = ConstToIntError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &ConstSlice) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&ConstSlice> for i64

Source§

type Error = ConstToIntError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &ConstSlice) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more