pub enum IndexRename {
Base(Ident),
Pieces(Vec<(RenamePiece, Ident)>),
}Expand description
WHAT THIS DECLARATION’S MINTED RUST TYPES ARE CALLED — the top-level rename word, in whichever
of its two forms it was written.
§The BONES axis, and it never appears in a backend block
These are RUST names: the packages, the vocabularies, the evidence, the selector and the markers
this expansion lands in the declaring scope. A skin’s names are IndexBackend’s, and the two
never cross — a schema rename that moved a Rust type would make one declaration’s API depend on
which backends happened to be compiled in.
The declaration’s OWN struct name is never among them. It is the author’s item, sitting in the author’s file; nothing here renames what somebody wrote.
§Two forms, and they are exclusive for Extension’s reason
The extension word’s precedent, one grammar over: a single fact is a key-value and a structured
one is a block, and writing both at one position is refused as a repeat. rename = "ShotSearch"
re-bases the WHOLE family; rename(fuse_options = "MyKnobs", …) names individual mints.
Variants§
Base(Ident)
rename = "ShotSearch" — the base every minted name is built on, replacing the declaration’s
own ident at the head of each.
Pieces(Vec<(RenamePiece, Ident)>)
rename(<piece> = "…", …) — one entry per mint the declaration named, in written order.