Crate rcstr [−] [src]
A reference counted string that acts like a regular str slice, hiding the
fact that it is wrapped in Rc
.
Example
use rcstr::RcStr; use std::collections::HashSet; let mut map: HashSet<RcStr> = HashSet::new(); map.insert(RcStr::new("foo")); assert!(map.contains("foo")); assert!(map.contains(&RcStr::new("foo"))); assert!(!map.contains("bar"));
Structs
RcStr |