Function std::rc::is_unique
[−]
[src]
pub fn is_unique<T>(rc: &Rc<T>) -> bool
Deprecated since 1.2.0
: renamed to Rc::is_unique
Returns true if there are no other Rc
or Weak<T>
values that share the
same inner value.
Examples
#![feature(rc_unique)] fn main() { use std::rc; use std::rc::Rc; let five = Rc::new(5); rc::is_unique(&five); }#![feature(rc_unique)] use std::rc; use std::rc::Rc; let five = Rc::new(5); rc::is_unique(&five);