mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-05-29 15:41:36 +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>;
|
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 {
|
pub trait Serialize {
|
||||||
/// Serialization error produced by serialization routine.
|
/// Serialization error produced by serialization routine.
|
||||||
type Error: From<io::Error>;
|
type Error: From<io::Error>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user