Trait Make1

Source
pub trait Make1<Arg>: Sized {
    // Required method
    fn make_1(arg: Arg) -> Self;

    // Provided method
    fn make(arg: Arg) -> Self { ... }
}
Expand description

Constructor with single argument.

Required Methods§

Source

fn make_1(arg: Arg) -> Self

Constructor without arguments.

Provided Methods§

Source

fn make(arg: Arg) -> Self

Constructor without 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 Make1<Attribute> for AttributesInner

Source§

impl Make1<Attribute> for AttributesOuter

Source§

impl<T> Make1<T> for proc_macro_tools::prelude::Many<T>

Source§

impl<T> Make1<T> for HomoPair<T>
where T: Clone,

Source§

impl<T> Make1<T> for Single<T>

Source§

impl<T: ToTokens> Make1<T> for proc_macro_tools::Many<T>