This library is an implementation of strong-only reference counted smart pointers in Rust. All applicable methods have identical names as in std::rc
, and so this
can be used as a drop in replacement for that. Requires nightly Rust.
First, add this to your Cargo.toml
:
[dependencies]
strong_rc = "0.1.4"
Next, add this to your crate:
extern crate strong_rc;
use strong_rc::Rc;
Then you should consult the documentation, or simply use it as if it were
std::rc
.
strong_rc
is distributed under the terms of both the MIT license and
the Apache License (Version 2.0).