Skip to main content

Make2

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".

Implementors§

Source§

impl Make2<Attribute, Attribute> for AttributesInner

Source§

impl Make2<Attribute, Attribute> for AttributesOuter

Source§

impl<T1, T2> Make2<T1, T2> for proc_macro_tools::prelude::Pair<T1, T2>

Source§

impl<T1: Parse + ToTokens, T2: Parse + ToTokens> Make2<T1, T2> for proc_macro_tools::Pair<T1, T2>

Source§

impl<T: ToTokens> Make2<T, T> for proc_macro_tools::Many<T>

Source§

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

Source§

impl<T> Make2<T, T> for proc_macro_tools::prelude::Many<T>