Function alloc::rc::is_uniqueExperimental
[-]
[+]
[src]
pub fn is_unique<T>(rc: &Rc<T>) -> bool
Returns true if there are no other Rc
or Weak<T>
values that share the same inner value.
Examples
use std::rc; use std::rc::Rc; let five = Rc::new(5i); rc::is_unique(&five);