1 2 3 4 5 6 7 8 9
use syn::parse::{Parse, ParseStream, Result}; pub struct Nothing; impl Parse for Nothing { fn parse(_input: ParseStream) -> Result<Self> { Ok(Nothing) } }
1 2 3 4 5 6 7 8 9
use syn::parse::{Parse, ParseStream, Result}; pub struct Nothing; impl Parse for Nothing { fn parse(_input: ParseStream) -> Result<Self> { Ok(Nothing) } }