pub trait ToRaw<'j> {
type Error: From<Error> + Error;
// Required method
fn try_into_raw(&'j self) -> Result<&'j RawJson, Self::Error>;
}
Expand description
Glue trait allowing the crate’s functions to abstract over the exact layout of the borrowed Json.
Can be potentially implemented by foreign types.