Match the method name to the other traits
This may magically work due to the macro underlying all the element macros.
@@ -16,7 +16,7 @@ pub trait UpdateElForIterator<Ms> {
/// Similar to `UpdateEl`, specialized for `Option<I> where I: Iterator`.
pub trait UpdateElForOptionIterator<Ms> {
- fn update_el_iter(self, el: &mut El<Ms>);
+ fn update_el(self, el: &mut El<Ms>);
}
// ------ Implementations ------
@@ -141,7 +141,7 @@ impl<Ms, T: UpdateEl<Ms>, I: Iterator<Item = T>> UpdateElForIterator<Ms> for I {
}
impl<Ms, T: UpdateEl<Ms>, I: Iterator<Item = T>> UpdateElForOptionIterator<Ms> for Option<I> {
- fn update_el_iter(self, el: &mut El<Ms>) {
+ fn update_el(self, el: &mut El<Ms>) {
if let Some(iter) = self {
for item in iter {
item.update_el(el);
