pub trait Convert<F, T> {
type Error: Debug + Into<Error>;
// Required method
fn convert(&self, f: F) -> Result<T, Self::Error>;
}
Expand description
General trait representing a the ability of some object to perform a (possibly unsuccessful) conversion between two other types.