Trait concordium_contracts_common::Get
source · pub trait Get<T> {
// Required method
fn get(&mut self) -> ParseResult<T>;
}
Expand description
A more convenient wrapper around Deserial
that makes it easier to write
deserialization code. It has a blanked implementation for any read and
serialize pair. The key idea is that the type to deserialize is inferred
from the context, enabling one to write, for example,
let x = source.get()?;
let y = source.get()?;
where source
is any type that implements Read
.