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 Make0 for AttributesInner

Source§

impl Make0 for AttributesOuter

Source§

impl<T1, T2> Make0 for proc_macro_tools::prelude::Pair<T1, T2>
where T1: Default, T2: Default,

Source§

impl<T1, T2> Make0 for proc_macro_tools::Pair<T1, T2>
where T1: Default + Parse + ToTokens, T2: Default + Parse + ToTokens,

Source§

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

Source§

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

Source§

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

Source§

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