Trait ToRaw

Source
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.

Required Associated Types§

Required Methods§

Source

fn try_into_raw(&'j self) -> Result<&'j RawJson, Self::Error>

Implementations on Foreign Types§

Source§

impl<'j> ToRaw<'j> for str

Source§

type Error = Error

Source§

fn try_into_raw(&'j self) -> Result<&'j RawJson, Self::Error>

Source§

impl<'j> ToRaw<'j> for RawValue

Source§

type Error = Error

Source§

fn try_into_raw(&'j self) -> Result<&'j RawJson, Self::Error>

Source§

impl<'j> ToRaw<'j> for [u8]

Source§

type Error = Error

Source§

fn try_into_raw(&'j self) -> Result<&'j RawJson, Self::Error>

Implementors§