pub struct MockExportBuilder { /* private fields */ }
Implementations§
Source§impl MockExportBuilder
impl MockExportBuilder
pub fn new(name: &'static str, func: FunctionPointer) -> MockExportBuilder
pub fn with_func_len(self, len: usize) -> MockExportBuilder
pub fn with_traps(self, traps: &'static [TrapSite]) -> MockExportBuilder
pub fn with_sig(self, sig: Signature) -> MockExportBuilder
pub fn sym(&self) -> &'static str
pub fn func(&self) -> FunctionPointer
pub fn func_len(&self) -> usize
pub fn traps(&self) -> &'static [TrapSite]
pub fn sig(&self) -> Signature
Auto Trait Implementations§
impl Freeze for MockExportBuilder
impl RefUnwindSafe for MockExportBuilder
impl Send for MockExportBuilder
impl Sync for MockExportBuilder
impl Unpin for MockExportBuilder
impl UnwindSafe for MockExportBuilder
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