derive_weak

Crates.ioderive_weak
lib.rsderive_weak
version0.1.0
sourcesrc
created_at2022-06-09 08:47:33.849806
updated_at2022-06-09 08:47:33.849806
descriptionMake weak counterpart for structure
homepage
repositoryhttps://github.com/milyin/async-object
max_upload_size
id602509
size27,714
Michael Ilyin (milyin)

documentation

README

derive-weak

Implements derive macro #[derive(Weak)] which creates ‘weak’ counterpart for the structure. I.e. when original structure contains reference counting pointers (Arc, Rc), the corresponding weak structure contains the weak variants of these pointers (std::sync::Weak, std::rc::Weak).

This may be useful when it’s inconvenient to store some data under refernce counting pointer, due to performance or ergonomic reasons.

Commit count: 106

cargo fmt