Struct wasmparser::FunctionBody
source · pub struct FunctionBody<'a> { /* private fields */ }
Implementations§
source§impl<'a> FunctionBody<'a>
impl<'a> FunctionBody<'a>
pub fn new(offset: usize, data: &'a [u8]) -> Self
pub fn get_binary_reader<'b>(&self) -> BinaryReader<'b>where 'a: 'b,
pub fn get_locals_reader<'b>(&self) -> Result<LocalsReader<'b>>where 'a: 'b,
pub fn get_operators_reader<'b>(&self) -> Result<OperatorsReader<'b>>where 'a: 'b,
pub fn range(&self) -> Range
Trait Implementations§
source§impl<'a> Clone for FunctionBody<'a>
impl<'a> Clone for FunctionBody<'a>
source§fn clone(&self) -> FunctionBody<'a>
fn clone(&self) -> FunctionBody<'a>
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 moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for FunctionBody<'a>
impl<'a> Send for FunctionBody<'a>
impl<'a> Sync for FunctionBody<'a>
impl<'a> Unpin for FunctionBody<'a>
impl<'a> UnwindSafe for FunctionBody<'a>
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