Struct cranelift_wasm::wasmparser::BranchHint
source · pub struct BranchHint {
pub func_offset: u32,
pub taken: bool,
}
Expand description
A hint for a single branch.
Fields§
§func_offset: u32
The byte offset, from the start of the function’s body, of where the hinted instruction lives.
taken: bool
Whether or not the branch is hinted to be taken or not.
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
source§impl<'a> FromReader<'a> for BranchHint
impl<'a> FromReader<'a> for BranchHint
source§fn from_reader(
reader: &mut BinaryReader<'a>
) -> Result<BranchHint, BinaryReaderError>
fn from_reader( reader: &mut BinaryReader<'a> ) -> Result<BranchHint, BinaryReaderError>
Attempts to read
Self
from the provided binary reader, returning an
error if it is unable to do so.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