Function rustc_serialize::json::as_json
[−]
[src]
pub fn as_json<T: Encodable>(t: &T) -> AsJson<T>
Create an AsJson
wrapper which can be used to print a value as JSON
on-the-fly via write!
pub fn as_json<T: Encodable>(t: &T) -> AsJson<T>
Create an AsJson
wrapper which can be used to print a value as JSON
on-the-fly via write!
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).