(&self)
| 62 | #[cfg(feature = "alloc")] |
| 63 | #[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] |
| 64 | fn to_vec(&self) -> Result<Vec<u8>> { |
| 65 | let mut buf = Vec::new(); |
| 66 | self.encode_to_vec(&mut buf)?; |
| 67 | Ok(buf) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | impl<T> Encode for T |
nothing calls this directly
no test coverage detected