pub enum TupleIndex {
None,
ZeroWidth,
Single(BigUint),
Range {
left: BigUint,
right: BigUint,
},
}
Variants§
None
The indexee is a 1 bit scalar, so no indexing should be performed. Codegens as empty string
ZeroWidth
The indexee is zero width, this is most likely caused by a a mir lowering bug where a 0 sized type is indexed
Single(BigUint)
The index is a single bit, i.e. codegens as [val]
Range
The index is a range of bits, codegens as [left:right]
Implementations§
Source§impl TupleIndex
impl TupleIndex
pub fn verilog_code(&self) -> String
Trait Implementations§
Source§impl Debug for TupleIndex
impl Debug for TupleIndex
Source§impl PartialEq for TupleIndex
impl PartialEq for TupleIndex
impl StructuralPartialEq for TupleIndex
Auto Trait Implementations§
impl Freeze for TupleIndex
impl RefUnwindSafe for TupleIndex
impl Send for TupleIndex
impl Sync for TupleIndex
impl Unpin for TupleIndex
impl UnwindSafe for TupleIndex
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more