#[repr(C)]pub struct FunctionSpec { /* private fields */ }
Implementations§
Source§impl FunctionSpec
impl FunctionSpec
pub fn new( code_addr: u64, code_len: u32, traps_addr: u64, traps_len: u64, ) -> Self
pub fn ptr(&self) -> FunctionPointer
pub fn code_len(&self) -> u32
pub fn traps_len(&self) -> u64
pub fn contains(&self, addr: u64) -> bool
pub fn relative_addr(&self, addr: u64) -> Option<u32>
pub fn traps(&self) -> Option<TrapManifest<'_>>
Trait Implementations§
Source§impl Clone for FunctionSpec
impl Clone for FunctionSpec
Source§fn clone(&self) -> FunctionSpec
fn clone(&self) -> FunctionSpec
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 Freeze for FunctionSpec
impl RefUnwindSafe for FunctionSpec
impl Send for FunctionSpec
impl Sync for FunctionSpec
impl Unpin for FunctionSpec
impl UnwindSafe for FunctionSpec
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