| 1 | use super::*; |
| 2 | |
| 3 | impl<'a, T: 'a> Format for core::slice::ChunksExact<'a, T> |
| 4 | where |
| 5 | T: Format, |
| 6 | { |
| 7 | fn format(&self, fmt: Formatter) { |
| 8 | crate::write!(fmt, "ChunksExact(..)" ) |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | impl<'a, T: 'a> Format for core::slice::Iter<'a, T> |
| 13 | where |
| 14 | T: Format, |
| 15 | { |
| 16 | fn format(&self, fmt: Formatter) { |
| 17 | crate::write!( |
| 18 | fmt, |
| 19 | "Iter {{ slice: {=[?]}, position: ? }}" , |
| 20 | self.as_slice() |
| 21 | ) |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | impl<'a, T: 'a> Format for core::slice::Windows<'a, T> |
| 26 | where |
| 27 | T: Format, |
| 28 | { |
| 29 | fn format(&self, fmt: Formatter) { |
| 30 | crate::write!(fmt, "Windows(..)" ) |
| 31 | } |
| 32 | } |
| 33 | |