pub trait ParseOneSubkeyword: Sized {
// Required method
fn process_one_keyword(
&mut self,
kw: &Ident,
input: ParseStream<'_>,
) -> Option<Result<()>>;
}Required Methods§
Sourcefn process_one_keyword(
&mut self,
kw: &Ident,
input: ParseStream<'_>,
) -> Option<Result<()>>
fn process_one_keyword( &mut self, kw: &Ident, input: ParseStream<'_>, ) -> Option<Result<()>>
Process the value for a keyword subkw.
input is inside the { }, just after the =.
Generally implemented by impl_parse_subkeywords!,
which generates code involving a a call to subkw_parse_store.
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.