pub struct Rc<T> { priv ptr: *mut RcBox<T>, }
Immutable reference counted pointer type
impl<T: std::kinds::Send> Rc<T>
fn from_send(value: T) -> Rc<T>
impl<T: std::kinds::Freeze> Rc<T>
fn from_freeze(value: T) -> Rc<T>
impl<T> Rc<T>
fn borrow<'r>(&'r self) -> &'r T
impl<T> std::ops::Drop for Rc<T>
fn drop(&mut self)
impl<T> std::clone::Clone for Rc<T>
fn clone(&self) -> Rc<T>
Return a shallow copy of the reference counted pointer.
impl<T: std::clone::DeepClone> std::clone::DeepClone for Rc<T>
fn deep_clone(&self) -> Rc<T>
Return a deep copy of the reference counted pointer.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).