static-on-stack 0.1.0

Tool to safely promote short-lived references to 'static for the duration of a non-terminating function
Documentation
  • Coverage
  • 66.67%
    2 out of 3 items documented0 out of 1 items with examples
  • Size
  • Source code size: 4.09 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 528.81 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • chrysn

static-on-stack

Safely wrap the promotion of a short-lived reference to a 'static reference, under the condition that it is passed to a function that never terminates.

See [promote_to_static()] for both how to use it and why it is assumed to be sound.