Port serde2 to std::io, which cuts the speed by 26% :(

This commit is contained in:
Erick Tryzelaar
2015-02-16 18:17:50 -08:00
parent 4e4172ec85
commit 65cfcd03f8
7 changed files with 440 additions and 387 deletions
+2 -3
View File
@@ -19,9 +19,8 @@ pub trait Serializer {
type Value;
type Error;
fn visit<
T: Serialize,
>(&mut self, value: &T) -> Result<Self::Value, Self::Error>;
fn visit<T>(&mut self, value: &T) -> Result<Self::Value, Self::Error>
where T: Serialize;
}
///////////////////////////////////////////////////////////////////////////////