pub struct BranchHint {
pub instr_index: usize,
pub value: u32,
}Expand description
A @metadata.code.branch_hint in the code, associated with a If or BrIf
This instruction is a placeholder and won’t produce anything. Its purpose
is to store the offset of the following instruction and check that
it’s followed by br_if or if.
Fields§
§instr_index: usizeIndex of instructions in instrs field of Expression that this hint
applies to.
value: u32The value of this branch hint
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BranchHint
impl RefUnwindSafe for BranchHint
impl Send for BranchHint
impl Sync for BranchHint
impl Unpin for BranchHint
impl UnwindSafe for BranchHint
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