mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-02 14:54:30 +00:00
Implement Default for Vec
This commit is contained in:
parent
845257cecf
commit
0f7a519475
@ -257,6 +257,15 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<T, N> Default for Vec<T, N>
|
||||||
|
where
|
||||||
|
N: ArrayLength<T>,
|
||||||
|
{
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<T, N> fmt::Debug for Vec<T, N>
|
impl<T, N> fmt::Debug for Vec<T, N>
|
||||||
where
|
where
|
||||||
T: fmt::Debug,
|
T: fmt::Debug,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user