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.
First, add this to your Cargo.toml
:
toml
[dependencies]
strong_rc = "0.1.3"
Next, add this to your crate:
rust
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).