`'t` is the lifetime of the tape (reusable buffer), `'j` is the lifetime of the JSON data itself data must outlive tape, so if you return data with the lifetime of tape, a slice of data the original JSON data is okay too
| 9 | /// data must outlive tape, so if you return data with the lifetime of tape, |
| 10 | /// a slice of data the original JSON data is okay too |
| 11 | pub trait AbstractStringDecoder<'t, 'j> |
| 12 | where |
| 13 | 'j: 't, |
| 14 | { |
| 15 | type Output: std::fmt::Debug; |
| 16 | |
| 17 | fn decode( |
| 18 | data: &'j [u8], |
| 19 | index: usize, |
| 20 | tape: &'t mut Tape, |
| 21 | allow_partial: bool, |
| 22 | ) -> JsonResult<(Self::Output, usize)>; |
| 23 | } |
| 24 | |
| 25 | pub struct StringDecoder; |
| 26 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…