pub struct AllCallFunc<T> {
pub wasm_call: T,
pub array_call: T,
}
Expand description
A triple of related functions/trampolines variants with differing calling
conventions: {wasm,array}_call
.
Generic so we can use this with either the Box<dyn Any + Send>
s that
implementations of the compiler trait return or with FunctionLoc
s inside
an object file, for example.
Fields§
§wasm_call: T
The function exposing the Wasm calling convention.
array_call: T
The function exposing the array calling convention.
Implementations§
source§impl<T> AllCallFunc<T>
impl<T> AllCallFunc<T>
sourcepub fn map<U>(self, f: impl FnMut(T) -> U) -> AllCallFunc<U>
pub fn map<U>(self, f: impl FnMut(T) -> U) -> AllCallFunc<U>
Map an AllCallFunc<T>
into an AllCallFunc<U>
.
Trait Implementations§
source§impl<T: Clone> Clone for AllCallFunc<T>
impl<T: Clone> Clone for AllCallFunc<T>
source§fn clone(&self) -> AllCallFunc<T>
fn clone(&self) -> AllCallFunc<T>
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<T: Default> Default for AllCallFunc<T>
impl<T: Default> Default for AllCallFunc<T>
source§fn default() -> AllCallFunc<T>
fn default() -> AllCallFunc<T>
Returns the “default value” for a type. Read more
source§impl<'de, T> Deserialize<'de> for AllCallFunc<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for AllCallFunc<T>where
T: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> Serialize for AllCallFunc<T>where
T: Serialize,
impl<T> Serialize for AllCallFunc<T>where
T: Serialize,
impl<T: Copy> Copy for AllCallFunc<T>
Auto Trait Implementations§
impl<T> Freeze for AllCallFunc<T>where
T: Freeze,
impl<T> RefUnwindSafe for AllCallFunc<T>where
T: RefUnwindSafe,
impl<T> Send for AllCallFunc<T>where
T: Send,
impl<T> Sync for AllCallFunc<T>where
T: Sync,
impl<T> Unpin for AllCallFunc<T>where
T: Unpin,
impl<T> UnwindSafe for AllCallFunc<T>where
T: UnwindSafe,
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
)