Function alloc::rc::is_unique
[−]
[src]
pub fn is_unique<T>(rc: &Rc<T>) -> bool
Unstable
Returns true if there are no other Rc
`Rcor
` or Weak<T>
`Weak
Examples
use std::rc; use std::rc::Rc; let five = Rc::new(5); rc::is_unique(&five);