1 2 3 4 5 6 7 8 9 10
// Copyright © 2023-2025 Andrea Corbellini and contributors // SPDX-License-Identifier: BSD-3-Clause use core::fmt; impl<const N: usize, T> Debug for CircularBuffer<N, T> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_list().entries(self).finish() } }