use std::fmt::Debug; use auto_delegate_impl::Delegate; use crate::sub_module::multiple_field::child::MultipleChild; #[derive(Delegate)] pub struct MultipleParent where T: Debug + Default, { #[to(Addr, Increment, Readable)] child: MultipleChild, } impl MultipleParent where T: Debug + Default, { #[allow(unused)] pub fn new() -> MultipleParent { Self { child: MultipleChild::default(), } } }