Trait InferInto

Source
pub trait InferInto<A, Marker>: Sized {
    // Required method
    fn into(self) -> A;
}
Expand description

Into with relaxed orphan rule, you can define non-owned conversion with a owned Marker. Keep in mind this inference will fail if multiple conversion paths are found.

Required Methods§

Source

fn into(self) -> A

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§

Source§

impl<T, F> InferInto<F, bool> for T
where T: StandardConverters<F>,

Source§

impl<T, U> InferInto<U, ()> for T
where T: Into<U>,