Skip to main content

To

Trait To 

Source
pub trait To {
    // Required method
    fn to<T>(&self) -> T
       where Self: Upcast<T>;
}

Required Methods§

Source

fn to<T>(&self) -> T
where Self: Upcast<T>,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<A> To for A