MCPcopy Create free account
hub / github.com/ProgrammingRust/examples / RefWithFlag

Class RefWithFlag

ref-with-flag/src/lib.rs:13–16  ·  view source on GitHub ↗

A `&T` and a `bool`, wrapped up in a single word. The type `T` must require at least two-byte alignment. If you're the kind of programmer who's never met a pointer whose 2⁰-bit you didn't want to steal, well, now you can do it safely! ("But it's not nearly as exciting this way...")

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected