static-on-stack

Crates.iostatic-on-stack
lib.rsstatic-on-stack
version0.1.0
sourcesrc
created_at2023-10-17 15:14:46.538859
updated_at2023-10-17 15:14:46.538859
descriptionTool to safely promote short-lived references to 'static for the duration of a non-terminating function
homepage
repositoryhttps://codeberg.org/chrysn/static-on-stack
max_upload_size
id1005866
size4,403
(chrysn)

documentation

https://docs.rs/static-on-stack/

README

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.

Commit count: 0

cargo fmt