Trait wasmer_engine::ChainableNamedResolver
source · [−]pub trait ChainableNamedResolver: NamedResolver + Sized + Send + Sync {
fn chain_front<U>(self, other: U) -> NamedResolverChain<U, Self>
where
U: NamedResolver + Send + Sync,
{ ... }
fn chain_back<U>(self, other: U) -> NamedResolverChain<Self, U>
where
U: NamedResolver + Send + Sync,
{ ... }
}
Expand description
A trait for chaining resolvers together.
// override duplicates with imports from `imports2`
imports1.chain_front(imports2);
Provided methods
fn chain_front<U>(self, other: U) -> NamedResolverChain<U, Self> where
U: NamedResolver + Send + Sync,
fn chain_front<U>(self, other: U) -> NamedResolverChain<U, Self> where
U: NamedResolver + Send + Sync,
Chain a resolver in front of the current resolver.
This will cause the second resolver to override the first.
// override duplicates with imports from `imports2`
imports1.chain_front(imports2);
fn chain_back<U>(self, other: U) -> NamedResolverChain<Self, U> where
U: NamedResolver + Send + Sync,
fn chain_back<U>(self, other: U) -> NamedResolverChain<Self, U> where
U: NamedResolver + Send + Sync,
Chain a resolver behind the current resolver.
This will cause the first resolver to override the second.
// override duplicates with imports from `imports1`
imports1.chain_back(imports2);