pub trait Parse {
const FALLBACK_ERROR: ParseErrorKind = ParseErrorKind::InvalidItem;
// Required method
fn parse(parser: &mut Parser<'_, '_>) -> Result<Self, ErrorEmitted>
where Self: Sized;
// Provided method
fn error(_spans: Box<[Span]>, _error: ErrorEmitted) -> Option<Self>
where Self: Sized { ... }
}
Provided Associated Constants§
const FALLBACK_ERROR: ParseErrorKind = ParseErrorKind::InvalidItem
Required Methods§
Provided 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.