pub enum Statement {
Binding(Binding),
Register(Register),
Constant(ExprID, Type, ConstantValue),
Assert(Loc<ValueName>),
Set {
target: Loc<ValueName>,
value: Loc<ValueName>,
},
WalTrace {
name: ValueName,
val: ValueName,
suffix: String,
ty: Type,
},
}
Variants§
Binding(Binding)
Register(Register)
Constant(ExprID, Type, ConstantValue)
A constant expression with the specified ID and value
Assert(Loc<ValueName>)
Set
WalTrace
This is a tracing signal as part of the value name
. It is used for
both individual fields if #[wal_traceable]
and #[wal_trace]
is used,
and whole signals if #[wal_suffix]
is used
I.e. the result of
#[wal_traceable(suffix) struct T {a: A, b: B}
let x: T = ...`
Will be (e(0); IndexStruct(0); x) (wal_trace {name: x, val: e(0), suffix: _a_suffix, ty: A} (e(1); IndexStruct(1); x) (wal_trace {name: x, val: e(0), suffix: _a_suffix, ty: A}
Trait Implementations§
impl Eq for Statement
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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