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§