Converter

Trait Converter 

pub trait Converter<From: ?Sized, Into: ?Sized> {
    // Required method
    fn convert(from: From) -> Into;
}
Available on crate features tuple and tuple-convert only.

Required Methods§

fn convert(from: From) -> Into

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.

Implementors§

§

impl<'l, A, B> Converter<&'l A, &'l B> for AsRefConverter
where A: AsRef<B>,

§

impl<'l, A, B> Converter<&'l A, &'l B> for BorrowConverter
where A: Borrow<B>,

§

impl<'l, A, B> Converter<&'l mut A, &'l B> for AsRefConverter
where A: AsRef<B>,

§

impl<'l, A, B> Converter<&'l mut A, &'l B> for BorrowConverter
where A: Borrow<B>,

§

impl<'l, A, B> Converter<&'l mut A, &'l mut B> for AsRefConverter
where A: AsMut<B>,

§

impl<'l, A, B> Converter<&'l mut A, &'l mut B> for BorrowConverter
where A: BorrowMut<B>,

§

impl<A, B> Converter<A, B> for FromConverter
where B: From<A>,