Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ where
/// Returns an iterator that allows modifying each value.
#[inline]
pub fn iter_mut(&mut self) -> IterMut<'_, T> {
self.as_mut().iter_mut()
self.0.as_mut().iter_mut()
}

/// Returns an array of the same size as `self`, with function `f` applied to each element in
Expand Down Expand Up @@ -605,6 +605,16 @@ where
}
}

impl<T, U> AsMut<Array<T, U>> for Array<T, U>
where
U: ArraySize,
{
#[inline]
fn as_mut(&mut self) -> &mut Self {
self
}
}

impl<T, U> AsMut<[T]> for Array<T, U>
where
U: ArraySize,
Expand Down