Why Nostr? What is Njump?
2023-08-27 11:27:15
in reply to

Mo Bitar :ferris: on Nostr: npub1dc9aq…75t7a But you also have the `leak` functions that allow you to leak ...

But you also have the `leak` functions that allow you to leak memory so that it will not be dropped. This is useful if you know that a Vec or String for example should exist until the end of the program. Useful for configuration values for example.

https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.leak
Author Public Key
npub1j7fc87rk03whjh72mphc9hrm8zecfsdywdcscsesznwzcrasudvs75mapy