pub trait ConvertBack<A, B>: Convert<A, B> {
// Required method
fn convert_back(b: B) -> A;
}
Expand description
Reversing infallible conversion trait. Generic over both source and destination types.
This specifically reverses the conversion.
Required Methods§
Sourcefn convert_back(b: B) -> A
fn convert_back(b: B) -> A
Make conversion back.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.