pub trait Translator:
Send
+ Sync
+ 'static {
type External: Send + 'static;
type Internal: Send + 'static;
// Required method
fn translate(&self, ext: Self::External) -> Option<Self::Internal>;
}Expand description
Translate a value from one bounded context’s vocabulary to
another’s. Return None to drop the value.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".