pub struct StrayBranch {
pub offset: u32,
pub target: i64,
}Expand description
A branch that does not land on the start of an instruction.
The reference compiler produces a few of these: the switch it
generates for some expressions has a default branch that points into
the middle of an instruction. The default is never taken, so the
program runs correctly, and a disassembler has to tolerate it.
Fields§
§offset: u32Offset of the branching instruction within the function, or of the exception table for a stray handler.
target: i64The target offset.
Trait Implementations§
Source§impl Clone for StrayBranch
impl Clone for StrayBranch
impl Copy for StrayBranch
Source§impl Debug for StrayBranch
impl Debug for StrayBranch
impl Eq for StrayBranch
Source§impl PartialEq for StrayBranch
impl PartialEq for StrayBranch
impl StructuralPartialEq for StrayBranch
Auto Trait Implementations§
impl Forget for StrayBranch
impl Freeze for StrayBranch
impl Move for StrayBranch
impl RefUnwindSafe for StrayBranch
impl Send for StrayBranch
impl Sync for StrayBranch
impl Unpin for StrayBranch
impl UnsafeUnpin for StrayBranch
impl UnwindSafe for StrayBranch
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