easy_node
Smart pointer for graph nodes.
The author of this crate is not good at English.
Forgive me if the document is hard to read.
What is this?
This crate provides some smart pointers optimized for managing graph data structures.
Nr
- likeRc
Nw
- likeWeak
.NrCell
- newtype ofNr<RefCell<T>>
.NwCell
- newtype ofNw<RefCell<T>>
.
These smart pointers behavior is similar to Rc
and Weak
.
However, there are several important differences between them.
- This crate smart pointer comparison is based on location.
- This crate weak pointer supports upgrade to strong pointer reference.
See the API documentation for details.
What's New?
v0.2.0
- Rename
upgrade
toupgrade_ref
and supportupgrade
likeWeak
.