Skip to main content

Crate refutil

Crate refutil 

Source
Expand description

Various utils for reference, lifetime and memory management.

Re-exports§

pub use revref::RevMut;
pub use revref::RevertCheck;
pub use dropref::DropMut;

Modules§

dropref
Provides reference that drops the referred object.
revref
Reverting Reference

Functions§

replace
Replaces object behind a mutable reference with another one. This is a more generic version of std::mem::replace.
replace_async
Replaces object behind a mutable reference with another one. This is a more generic version of std::mem::replace.