[−][src]Enum moore_svlog::hir::ExprKind
The different forms an expression can take.
Variants
An integer constant literal such as 42
or 'd42
or 32'd42
.
The special_bits
mask keeps track of which bits in the number are x
or z
. The x_bits
mask tracks which of these special bits are x
.
UnsizedConst(char)
An unsized and unbased constant literal such as '0
.
TimeConst(BigRational)
A time constant literal.
A string constant literal.
An identifier.
A unary operator.
A binary operator.
A field access such as a.b
.
An index access such as a[b]
or a[b:c]
.
Builtin(BuiltinCall)
A builtin function call such as $clog2(x)
.
A ternary expression such as a ? b : c
.
A scope expression such as foo::bar
.
A positional pattern such as '{a, b, c}
.
NamedPattern(Vec<(PatternMapping, NodeId)>)
A named pattern such as '{logic: a, foo: b, 31: c, default: d}
.
A repeat pattern such as '{32{a, b, c}}
.
The empty pattern '{}
.
A concatenation such as {a,b}
or {4{a,b}}
.
A cast (ty, expr)
such as foo'(bar)
.
Inside(NodeId, Vec<Spanned<InsideRange>>)
An inside expression such as a inside {b, c}
.
Trait Implementations
impl Clone for ExprKind
[src]
impl Debug for ExprKind
[src]
impl Eq for ExprKind
[src]
impl PartialEq<ExprKind> for ExprKind
[src]
impl StructuralEq for ExprKind
[src]
impl StructuralPartialEq for ExprKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExprKind
impl Send for ExprKind
impl Sync for ExprKind
impl Unpin for ExprKind
impl UnwindSafe for ExprKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,