mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-05-28 07:01:37 +00:00
add doc comment
This commit is contained in:
parent
43eec3a97f
commit
3dd4289b4c
@ -65,7 +65,8 @@ pub trait Deserialize : Sized {
|
||||
fn deserialize<R: io::Read>(reader: &mut R) -> Result<Self, Self::Error>;
|
||||
}
|
||||
|
||||
/// 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<io::Error>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user