pub struct Inst {
pub kind: InstKind,
pub source: SourceInfo,
}
Fields§
§kind: InstKind
§source: SourceInfo
Implementations§
Source§impl Inst
impl Inst
pub fn new(kind: InstKind, source: SourceInfo) -> Self
pub fn unary(op: UnOp, value: ValueId, source: SourceInfo) -> Self
pub fn binary(op: BinOp, lhs: ValueId, rhs: ValueId, source: SourceInfo) -> Self
pub fn intrinsic( op: YulIntrinsicOp, args: Vec<ValueId>, source: SourceInfo, ) -> Self
pub fn nop() -> Self
pub fn is_terminator(&self) -> bool
pub fn branch_info(&self) -> BranchInfo<'_>
pub fn args(&self) -> ValueIter<'_>
pub fn args_mut(&mut self) -> ValueIterMut<'_>
Trait Implementations§
impl Eq for Inst
impl StructuralPartialEq for Inst
Auto Trait Implementations§
impl Freeze for Inst
impl RefUnwindSafe for Inst
impl Send for Inst
impl Sync for Inst
impl Unpin for Inst
impl UnwindSafe for Inst
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.