impl Clone for Moves<'l>
This commit is contained in:
parent
270ac66db4
commit
5d2129b797
2 changed files with 15 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue