pub trait Applicable<T> {
type Output;
// Required method
fn apply(self, target: T) -> Self::Output;
}Expand description
The helper which determines whether a type can be applied to the target.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<C, K, Q, R> Applicable<IntermediateAnyError<C, K>> for (Q, R)
impl<C, K, Q, R> Applicable<IntermediateAnyError<C, K>> for (Q, R)
Source§fn apply(self, target: IntermediateAnyError<C, K>) -> Self::Output
fn apply(self, target: IntermediateAnyError<C, K>) -> Self::Output
Add context information represented as a key-value pairs to target
using self’s components.
type Output = IntermediateAnyError<C, K>
Source§impl<C, K, S> Applicable<AnyError<C, K>> for (S, K)
impl<C, K, S> Applicable<AnyError<C, K>> for (S, K)
Source§fn apply(self, target: AnyError<C, K>) -> Self::Output
fn apply(self, target: AnyError<C, K>) -> Self::Output
Makes a new IntermediateAnyError which wraps target and sets
its error message and error kind to self’s corresponding components.
type Output = IntermediateAnyError<C, K>
Source§impl<C, K> Applicable<AnyError<C, K>> for &strwhere
C: AbstractContext,
K: Kind,
impl<C, K> Applicable<AnyError<C, K>> for &strwhere
C: AbstractContext,
K: Kind,
Source§fn apply(self, target: AnyError<C, K>) -> Self::Output
fn apply(self, target: AnyError<C, K>) -> Self::Output
Makes a new IntermediateAnyError which wraps target and sets
its error message to self.
type Output = IntermediateAnyError<C, K>
Source§impl<C, K> Applicable<AnyError<C, K>> for Stringwhere
C: AbstractContext,
K: Kind,
impl<C, K> Applicable<AnyError<C, K>> for Stringwhere
C: AbstractContext,
K: Kind,
Source§fn apply(self, target: AnyError<C, K>) -> Self::Output
fn apply(self, target: AnyError<C, K>) -> Self::Output
Makes a new IntermediateAnyError which wraps target and sets
its error message to self.
type Output = IntermediateAnyError<C, K>
Source§impl<T, C, K, Q, R> Applicable<Result<T, IntermediateAnyError<C, K>>> for (Q, R)
impl<T, C, K, Q, R> Applicable<Result<T, IntermediateAnyError<C, K>>> for (Q, R)
Source§fn apply(self, target: Result<T, IntermediateAnyError<C, K>>) -> Self::Output
fn apply(self, target: Result<T, IntermediateAnyError<C, K>>) -> Self::Output
Delegates the parameters to IntermediateAnyError’s implementation.