pub struct Copier<A, B, S> {
pub src: A,
pub dest: B,
pub state: S,
}
Fields§
§src: A
§dest: B
§state: S
Implementations§
Source§impl<'a: 'b, 'b, A: Deref<Target = Module<'a>>, B: Deref<Target = Module<'b>> + DerefMut, S: Deref<Target = State<I>> + DerefMut, I: Deref<Target = J> + DerefMut, J: Imports + ?Sized> Copier<A, B, S>
impl<'a: 'b, 'b, A: Deref<Target = Module<'a>>, B: Deref<Target = Module<'b>> + DerefMut, S: Deref<Target = State<I>> + DerefMut, I: Deref<Target = J> + DerefMut, J: Imports + ?Sized> Copier<A, B, S>
pub fn new(src: A, dest: B, cache: S) -> Self
pub fn resolve_import( &mut self, a: &ImportKind, ) -> Result<Option<ImportBehavior>>
pub fn internal_translate_mem(&mut self, a: Memory) -> Result<Memory>
pub fn internal_translate_global(&mut self, a: Global) -> Result<Global>
pub fn translate_import(&mut self, a: ImportKind) -> Result<ImportKind>
pub fn internal_translate_table(&mut self, tk: Table) -> Result<Table>
pub fn translate_sig(&mut self, s: Signature) -> Result<Signature>
pub fn internal_translate_func(&mut self, f: Func) -> Result<Func>
pub fn translate_Memory(&mut self, m: Memory) -> Result<Memory>
pub fn translate_Table(&mut self, m: Table) -> Result<Table>
pub fn translate_Global(&mut self, m: Global) -> Result<Global>
pub fn translate_Func(&mut self, m: Func) -> Result<Func>
Auto Trait Implementations§
impl<A, B, S> Freeze for Copier<A, B, S>
impl<A, B, S> RefUnwindSafe for Copier<A, B, S>
impl<A, B, S> Send for Copier<A, B, S>
impl<A, B, S> Sync for Copier<A, B, S>
impl<A, B, S> Unpin for Copier<A, B, S>
impl<A, B, S> UnwindSafe for Copier<A, B, S>
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