Skip to main content

Mapper

Trait Mapper 

Source
pub trait Mapper<T> {
    // Required method
    fn to(&self) -> T;
}
Expand description

Trait defining a mapper converting itself to a destination Type of T

Required Methods§

Source

fn to(&self) -> T

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§