(ctx: Ctx, errors: &E)
| 496 | |
| 497 | #[inline] |
| 498 | pub fn encode<Ctx, E>(ctx: Ctx, errors: &E) -> Result<Vec<u8>, Ctx::Error> |
| 499 | where |
| 500 | Ctx: EncodeContext, |
| 501 | E: EncodeErrorHandler<Ctx>, |
| 502 | { |
| 503 | encode_utf8_compatible(ctx, errors, "surrogates not allowed", StrKind::Utf8) |
| 504 | } |
| 505 | |
| 506 | pub fn decode<Ctx: DecodeContext, E: DecodeErrorHandler<Ctx>>( |
| 507 | ctx: Ctx, |
no test coverage detected