Debian Codegraph @

debian/rust-vendor/defmt-macros/src/function_like/write/args.rs

raw
1 use syn::{
2 parse::{self, Parse, ParseStream},
3 Expr, Token,
4 };
5
6 use crate::function_like::log;
7
8 pub(crate) struct Args {
9 pub(crate) formatter: Expr,
10 _comma: Token![,],
11 pub(crate) log_args: log::Args,
12 }
13
14 impl Parse for Args {
15 fn parse(input: ParseStream) -> parse::Result<Self> {
16 Ok(Self {
17 formatter: input.parse()?,
18 _comma: input.parse()?,
19 log_args: input.parse()?,
20 })
21 }
22 }