Open Rua opened 2 months ago
Like the extend method of many standard containers, this would take an iterator of extension structs and add them all:
extend
pub fn extend_next( self, next: impl IntoIterator<Item = &'a mut dyn ExtendsWhatever>, ) -> Self
That seems like a lot of extra generated code for something that could be addressed with a three-line for loop on the caller's side.
Like the
extend
method of many standard containers, this would take an iterator of extension structs and add them all: