Trait default_constructor::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

Object Safety§

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>,