(v: &Self, writer: &mut Writer)
| 65 | type ReadResult = &'a str; |
| 66 | |
| 67 | fn write(v: &Self, writer: &mut Writer) -> Result<(), Error> { |
| 68 | writer.write_bytes(v.as_bytes()); |
| 69 | Ok(()) |
| 70 | } |
| 71 | |
| 72 | fn cast(bytes: &'a [u8]) -> Self::ReadResult { |
| 73 | unsafe { std::str::from_utf8_unchecked(bytes) } |
nothing calls this directly
no test coverage detected