pub trait TryParsewhere
Self: Sized,{
type Err;
// Required method
fn try_parse(
iter: &mut impl Iterator<Item = u8>,
) -> Result<Self, TryParseError<Self::Err>>;
}
Expand description
Allows a type to be parsed through the try_parse
, parse
, try_scan
and scan
macros.
Required Associated Types§
Required Methods§
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.