Trait cglue::from2::From2

source ·
pub trait From2<T> {
    // Required method
    fn from2(other: T) -> Self;
}
Expand description

Wrapper trait that is implemented on Into types.

This trait is purely needed for type parameter inferring purposes, where Into can not be used, but From would make it not as versatile. This trait acts like From, but is implemented when only Into is implemented.

Required Methods§

source

fn from2(other: T) -> Self

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Into<F>, F> From2<T> for F