Function rustc_builtin_macros::deriving::decodable::decode_static_fields
source · fn decode_static_fields<F>(
cx: &mut ExtCtxt<'_>,
trait_span: Span,
outer_pat_path: Path,
fields: &StaticFields,
getarg: F
) -> P<Expr>where
F: FnMut(&mut ExtCtxt<'_>, Span, Symbol, usize) -> P<Expr>,
Expand description
Creates a decoder for a single enum variant/struct:
outer_pat_path
is the path to this enum variant/structgetarg
should retrieve theusize
-th field with name@str
.