Crates.io | static-on-stack |
lib.rs | static-on-stack |
version | 0.1.0 |
source | src |
created_at | 2023-10-17 15:14:46.538859 |
updated_at | 2023-10-17 15:14:46.538859 |
description | Tool to safely promote short-lived references to 'static for the duration of a non-terminating function |
homepage | |
repository | https://codeberg.org/chrysn/static-on-stack |
max_upload_size | |
id | 1005866 |
size | 4,403 |
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.