Skip to main content

ConvertibleTo

Trait ConvertibleTo 

Source
pub trait ConvertibleTo<Output>: Sized + Copy {
    // Provided method
    fn convert<C: Converter<Self, Output>>(&self, converter: &C) -> Output { ... }
}

Provided Methods§

Source

fn convert<C: Converter<Self, Output>>(&self, converter: &C) -> Output

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§