pub trait Extractor: Sized {
// Required method
fn extract(
iter: &mut impl Iterator<Item = TokenTree>
) -> Result<Self, Error>;
}
Expand description
Allow extracting from a TokenStream Iterator.
All FromMacro
implementors use from_one
as an extractor.
Combine with an extractor like Deliminated
to use from_multi
.
Required Methods§
Object Safety§
This trait is not object safe.