A PDF name (§7.3.5): the decoded byte sequence, #-escapes already
expanded, without the introducing /.
Stored decoded so /Type and /Ty#70e (same name, §7.3.5 NOTE 1)
compare and hash identically. Names are raw bytes, not guaranteed
UTF-8 (§7.3.5: interpretation as UTF-8 applies only where a name is
used as text).
Debug form is /Name with non-ASCII bytes hex-escaped —
mirrors how the name would be discussed, not its exact source
encoding (which is non-unique anyway).
Because / is how a name is spelled everywhere an operator can check
it: in the file’s own bytes, in the standard’s tables, and in every
message this crate already writes. A consumer rendering PageMode and
a consumer rendering /PageMode are describing the same value and
their users cannot tell. The engine has a view — the files it writes
carry the slash — and the consuming shell was, in its own words,
guessing it.
Debug for Name already produced exactly this, so Display
delegates rather than defining a second spelling. Two renderings of one
name is precisely the drift this impl exists to stop, and it would be a
poor joke to introduce it here.