1
0
Fork 0

impl Clone for Moves<'l>

This commit is contained in:
Paul-Nicolas Madelaine 2025-11-26 23:03:23 +01:00
parent 270ac66db4
commit 5d2129b797
2 changed files with 15 additions and 0 deletions

View file

@ -7,6 +7,19 @@ pub(crate) struct ArrayVec<T, const N: usize> {
array: [MaybeUninit<T>; N],
}
impl<T, const N: usize> Clone for ArrayVec<T, N>
where
T: Copy,
{
#[inline]
fn clone(&self) -> Self {
Self {
len: self.len,
array: self.array.clone(),
}
}
}
impl<T, const N: usize> ArrayVec<T, N> {
#[inline]
pub(crate) fn new() -> Self {