Guest User

Untitled

a guest
Jan 17th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. struct JsonReader;
  2. struct JsonWriter;
  3. struct ReadError;
  4.  
  5. trait JsonConverter {
  6. type ItemType;
  7.  
  8. fn write_json(writer: JsonWriter, value: Self::ItemType);
  9. fn read_json(reader: JsonReader) -> Result<Self::ItemType, ReadError>;
  10. }
Add Comment
Please, Sign In to add comment