From 3dd4289b4c0842361da4556ef1a86b54612b788e Mon Sep 17 00:00:00 2001 From: NikVolf Date: Fri, 16 Feb 2018 16:47:10 +0300 Subject: [PATCH] add doc comment --- src/elements/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/elements/mod.rs b/src/elements/mod.rs index d89b076..ec8dd9e 100644 --- a/src/elements/mod.rs +++ b/src/elements/mod.rs @@ -65,7 +65,8 @@ pub trait Deserialize : Sized { fn deserialize(reader: &mut R) -> Result; } -/// Serialization to serial i/o +/// Serialization to serial i/o. Takes self by value to consume less memory +/// (parity-wasm IR is being partially freed by filling the result buffer). pub trait Serialize { /// Serialization error produced by serialization routine. type Error: From;