(&self, dest: &mut T)
| 360 | } |
| 361 | |
| 362 | fn encode_to<T: Output + ?Sized>(&self, dest: &mut T) { |
| 363 | let bytes = self |
| 364 | .to_bytes() |
| 365 | .or_panic("VersionedAttestation should always encode successfully"); |
| 366 | dest.write(&bytes); |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | impl Decode for VersionedAttestation { |