pub trait Parseable<T> {
// Required method
fn parse(&self) -> Result<T, DecodeError>;
}
Expand description
A Parseable
type can be used to deserialize data into the target type T
for which it is
implemented.
Required Methods§
Sourcefn parse(&self) -> Result<T, DecodeError>
fn parse(&self) -> Result<T, DecodeError>
Deserialize the current type.