pub struct BranchHint {
pub branch_func_offset: u32,
pub branch_hint_value: u32,
}
Expand description
A single branch hint within a function.
Fields§
§branch_func_offset: u32
The offset, in bytes from the beginning of the function, to the if
instruction that this is hinting.
branch_hint_value: u32
The value of the hint, 0 for not taken and 1 for taken.
Trait Implementations§
Source§impl Clone for BranchHint
impl Clone for BranchHint
Source§fn clone(&self) -> BranchHint
fn clone(&self) -> BranchHint
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BranchHint
impl Debug for BranchHint
impl Copy for BranchHint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)