pub enum Kind {
}Expand description
Node kind. Variants that carry payload (Constant, Variable, Shr)
store it inline instead of in a side channel on the struct.
Variants§
Constant(u64)
Variable(u32)
Add
Mul
And
Or
Xor
Not
Neg
Shr(u32)
Logical shift right. The shift amount is pinned here; >= 64 yields 0
ZExt(u32)
Zero-extend the child to w bits. Result width = w (the payload).
SExt(u32)
Sign-extend the child to w bits. Result width = w (the payload).
Trunc(u32)
Truncate the child to w low bits. Result width = w (the payload).
Concat
Bit concatenation. Result width = w(child0) + w(child1); child0 is
the high part, child1 the low part.
Implementations§
Trait Implementations§
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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