pub trait Get<A> {
// Required method
fn get(&mut self) -> Result<A, Error>;
}Expand description
Analogue of Deserial, but instead this has the type to serialize as a type
parameter, and is implemented once for a source. The reason for this trait
is that it is often more convenient to use since we can rely on the
typechecker to fill in more details. Contrast A::deserial(source) to
source.get(). In the latter case the return type is usually clear from
context.