[−][src]Function syntax_ext::deriving::decodable::decode_static_fields
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>,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Create 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
.