Function rustc_serialize::json::encode
[−]
[src]
pub fn encode<T: Encodable>(object: &T) -> EncodeResult<String>
Shortcut function to encode a T
into a JSON String
pub fn encode<T: Encodable>(object: &T) -> EncodeResult<String>
Shortcut function to encode a T
into a JSON String
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
).