Trait test_tools::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.

Object Safety§

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>