[−][src]Macro init_tree::impl_init
Provides an impl of the Init
trait for a type.
This is structured roughly as a function definition. The only acceptable args for it are
mutable references to other structures with an Init
or Default
implementation.
Example
#[derive(Default, PartialEq, Eq, Debug)] struct InitDependency; #[derive(PartialEq, Eq, Debug)] struct InitMe; impl_init!(InitMe; (_dep: &mut InitDependency) { InitMe });