Trait Make2

Source
pub trait Make2<Arg1, Arg2>: Sized {
    // Required method
    fn make_2(arg1: Arg1, arg2: Arg2) -> Self;

    // Provided method
    fn make(arg1: Arg1, arg2: Arg2) -> Self { ... }
}
Expand description

Constructor with two arguments.

Required Methods§

Source

fn make_2(arg1: Arg1, arg2: Arg2) -> Self

Constructor with two arguments.

Provided Methods§

Source

fn make(arg1: Arg1, arg2: Arg2) -> Self

Constructor with two arguments.

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<T1, T2> Make2<T1, T2> for Pair<T1, T2>

Source§

impl<T> Make2<T, T> for HomoPair<T>

Source§

impl<T> Make2<T, T> for Many<T>