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
)