pub struct FactorData<F>(/* private fields */);
Expand description
Helper type to satisfy the D: HasData
implementations needed by
wasmtime’s generated add_to_linker
functions.
Trait Implementations§
Source§impl<F: Factor> HasData for FactorData<F>
impl<F: Factor> HasData for FactorData<F>
Source§type Data<'a> = &'a mut <<F as Factor>::InstanceBuilder as FactorInstanceBuilder>::InstanceState
type Data<'a> = &'a mut <<F as Factor>::InstanceBuilder as FactorInstanceBuilder>::InstanceState
The data associated with this trait implementation, chiefly used as a
generic associated type to allow plumbing the
'a
lifetime into the
definition here. Read moreAuto Trait Implementations§
impl<F> Freeze for FactorData<F>where
F: Freeze,
impl<F> RefUnwindSafe for FactorData<F>where
F: RefUnwindSafe,
impl<F> Send for FactorData<F>where
F: Send,
impl<F> Sync for FactorData<F>where
F: Sync,
impl<F> Unpin for FactorData<F>where
F: Unpin,
impl<F> UnwindSafe for FactorData<F>where
F: 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more