Trait json::encoder::ToJson
[−]
[src]
pub trait ToJson { fn encode<W: Write>(&self, e: &mut Encoder<W>) -> EncodeResult<()>; }
Required Methods
fn encode<W: Write>(&self, e: &mut Encoder<W>) -> EncodeResult<()>
Implementors
impl ToJson for bool
impl ToJson for u8
impl ToJson for u16
impl ToJson for u32
impl ToJson for u64
impl ToJson for usize
impl ToJson for i8
impl ToJson for i16
impl ToJson for i32
impl ToJson for i64
impl ToJson for isize
impl ToJson for f64
impl ToJson for str
impl ToJson for String
impl ToJson for Json
impl<'a, T: ToJson> ToJson for &'a T
impl<'a, T: ToJson + Clone> ToJson for Cow<'a, T>
impl<T: ToJson> ToJson for Option<T>
impl<'a, T: ToJson> ToJson for &'a [T]