pub trait ParseableParametrized<T, P>{
type Error;
// Required method
fn parse_with_param(buf: &T, params: P) -> Result<Self, Self::Error>;
}
Expand description
A Parseable
type can be used to deserialize data from the type T
for
which it is implemented.
Required Associated Types§
Required Methods§
Sourcefn parse_with_param(buf: &T, params: P) -> Result<Self, Self::Error>
fn parse_with_param(buf: &T, params: P) -> Result<Self, Self::Error>
Deserialize the current type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.