pub enum WirexprBasic {
Full(Substr),
SingleBit(Substr, isize),
Slice(Substr, SVerilogRange),
Literal(usize, u128, u128),
}Expand description
Basic component of a wire expression, which can be a wire reference, reference to a single wire bit, slice of a wire vector, or a constant literal.
Variants§
Full(Substr)
E.g. somepin.
SingleBit(Substr, isize)
E.g. somepin[1].
Slice(Substr, SVerilogRange)
E.g. somepin[0:7].
Literal(usize, u128, u128)
E.g. 4'b01xz.
The pairs are (size, value, is_xz).
Trait Implementations§
Source§impl Debug for WirexprBasic
impl Debug for WirexprBasic
Source§impl Display for WirexprBasic
impl Display for WirexprBasic
Source§impl PartialEq for WirexprBasic
impl PartialEq for WirexprBasic
impl StructuralPartialEq for WirexprBasic
Auto Trait Implementations§
impl Freeze for WirexprBasic
impl RefUnwindSafe for WirexprBasic
impl Send for WirexprBasic
impl Sync for WirexprBasic
impl Unpin for WirexprBasic
impl UnwindSafe for WirexprBasic
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