pub trait ParseableParametrized<T, P>where
Self: Sized,
T: ?Sized,{
fn parse_with_param(buf: &T, params: P) -> Result<Self, DecodeError>;
}
Expand description
A Parseable
type can be used to deserialize data from the type T
for
which it is implemented.
Required Methods§
sourcefn parse_with_param(buf: &T, params: P) -> Result<Self, DecodeError>
fn parse_with_param(buf: &T, params: P) -> Result<Self, DecodeError>
Deserialize the current type.