rustc_target::json

Trait ToJson

Source
pub trait ToJson {
    // Required method
    fn to_json(&self) -> Json;
}

Required Methods§

Source

fn to_json(&self) -> Json

Implementations on Foreign Types§

Source§

impl ToJson for bool

Source§

fn to_json(&self) -> Json

Source§

impl ToJson for i8

Source§

fn to_json(&self) -> Json

Source§

impl ToJson for i16

Source§

fn to_json(&self) -> Json

Source§

impl ToJson for i32

Source§

fn to_json(&self) -> Json

Source§

impl ToJson for i64

Source§

fn to_json(&self) -> Json

Source§

impl ToJson for isize

Source§

fn to_json(&self) -> Json

Source§

impl ToJson for str

Source§

fn to_json(&self) -> Json

Source§

impl ToJson for u8

Source§

fn to_json(&self) -> Json

Source§

impl ToJson for u16

Source§

fn to_json(&self) -> Json

Source§

impl ToJson for u32

Source§

fn to_json(&self) -> Json

Source§

impl ToJson for u64

Source§

fn to_json(&self) -> Json

Source§

impl ToJson for usize

Source§

fn to_json(&self) -> Json

Source§

impl ToJson for String

Source§

fn to_json(&self) -> Json

Source§

impl<'a> ToJson for Cow<'a, str>

Source§

fn to_json(&self) -> Json

Source§

impl<'a, A: ToJson> ToJson for Cow<'a, [A]>
where [A]: ToOwned,

Source§

fn to_json(&self) -> Json

Source§

impl<A: ToJson> ToJson for Option<A>

Source§

fn to_json(&self) -> Json

Source§

impl<A: ToJson> ToJson for [A]

Source§

fn to_json(&self) -> Json

Source§

impl<A: ToJson> ToJson for Vec<A>

Source§

fn to_json(&self) -> Json

Source§

impl<T: ToString, A: ToJson> ToJson for BTreeMap<T, A>

Source§

fn to_json(&self) -> Json

Implementors§