#set #observer #subscribe #container #listener

external_set

A set with externally-owned items, designed for managing subscribers, clients, listeners, or observers across threads. Inserting an item returns an ItemOwner that removes the item when dropped.

2 releases

Uses old Rust 2015

0.1.1 Aug 28, 2016
0.1.0 Jun 10, 2016

#2447 in Data structures

MIT/Apache

7KB
96 lines

external_set

Documentation

A Rust set data structure with externally-owned items, designed for managing subscribers, clients, listeners, or observers across threads.

Inserting an element returns an ItemOwner that maintains ownership of the object. When the ItemOwner is dropped, the element is removed from the set.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps