Enum sp_runtime_interface::wasm::WrappedFFIValue [−][src]
Represents a wrapped ffi value.
It is either the ffi value itself or the ffi value plus some other owned value. By providing
support for storing another owned value besides the actual ffi value certain performance
optimizations can be applied. For example using the pointer to a Vec<u8>
, while using the
pointer to a SCALE encoded Vec<u8>
that is stored in this wrapper for any other Vec<T>
.
Variants
Implementations
impl<T: Copy, O> WrappedFFIValue<T, O>
[src]
Trait Implementations
impl<T, O> From<(T, O)> for WrappedFFIValue<T, O>
[src]
impl<T, O> From<T> for WrappedFFIValue<T, O>
[src]
Auto Trait Implementations
impl<T, O> RefUnwindSafe for WrappedFFIValue<T, O> where
O: RefUnwindSafe,
T: RefUnwindSafe,
[src]
O: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, O> Send for WrappedFFIValue<T, O> where
O: Send,
T: Send,
[src]
O: Send,
T: Send,
impl<T, O> Sync for WrappedFFIValue<T, O> where
O: Sync,
T: Sync,
[src]
O: Sync,
T: Sync,
impl<T, O> Unpin for WrappedFFIValue<T, O> where
O: Unpin,
T: Unpin,
[src]
O: Unpin,
T: Unpin,
impl<T, O> UnwindSafe for WrappedFFIValue<T, O> where
O: UnwindSafe,
T: UnwindSafe,
[src]
O: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,