borrow-owned

Crates.ioborrow-owned
lib.rsborrow-owned
version0.1.0
sourcesrc
created_at2021-06-21 16:44:41.170461
updated_at2021-06-21 16:44:41.170461
descriptionSimple helper for temporary object moving
homepage
repositoryhttps://github.com/operutka/borrow-owned
max_upload_size
id412989
size10,272
Ondřej Perutka (operutka)

documentation

README

Simple helper for temporary object moving in Rust

Crates.io Docs.rs MIT licensed Build Status

It is useful if you need to pass your object somewhere and you cannot pass a reference to the object because you wouldn't be able to guarantee that the object lives long enough. For example, you don't want to use Arc<Mutex<_>> for some reason but you need to pass your object to a new thread and you need to use the object again in the original thread once the new thread does not need the object anymore.

Commit count: 2

cargo fmt