Trait Make0

Source
pub trait Make0: Sized {
    // Required method
    fn make_0() -> Self;

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

Constructor without arguments.

Required Methods§

Source

fn make_0() -> Self

Constructor without arguments.

Provided Methods§

Source

fn make() -> 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<T1, T2> Make0 for Pair<T1, T2>
where T1: Default, T2: Default,

Source§

impl<T> Make0 for HomoPair<T>
where T: Default,

Source§

impl<T> Make0 for Many<T>

Source§

impl<T> Make0 for Single<T>
where T: Default,