Make1

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<T> Make1<T> for HomoPair<T>
where T: Clone,

Source§

impl<T> Make1<T> for Many<T>

Source§

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