(&mut self, item: T)
| 125 | type Item = Bytes; |
| 126 | |
| 127 | fn code(&mut self, item: T) -> io::Result<Option<Self::Item>> { |
| 128 | Ok(Some( |
| 129 | try_downcast_to_bytes(item).unwrap_or_else(|item| Bytes::copy_from_slice(item.as_ref())), |
| 130 | )) |
| 131 | } |
| 132 | |
| 133 | #[inline] |
| 134 | fn code_eof(&mut self) -> io::Result<Option<Self::Item>> { |
no test coverage detected