Rc
- Immutable reference counted pointer typeRcMut
- Mutable reference counted pointer typefor Rc<T> where <T>
of Drop for Rc<T> where <T>
of Clone for Rc<T> where <T>
of DeepClone for Rc<T> where <T: DeepClone>
of ::std::cmp::Eq for Borrow
- Automatically derived.for RcMut<T> where <T>
of Drop for RcMut<T> where <T>
of Clone for RcMut<T> where <T>
of DeepClone for RcMut<T> where <T: DeepClone>
rc_from_const
rc_from_owned
rc_mut_from_const
rc_mut_from_owned
Rc
pub struct Rc<T> {
priv ptr: *mut RcBox<T>,
}
Immutable reference counted pointer type
RcMut
pub struct RcMut<T> {
priv ptr: *mut RcMutBox<T>,
}
Mutable reference counted pointer type
Rc<T>
where <T>
borrow
fn borrow<'r>(&'r self) -> &'r T
Drop
for Rc<T>
where <T>
drop
fn drop(&self)
Clone
for Rc<T>
where <T>
clone
fn clone(&self) -> Rc<T>
Return a shallow copy of the reference counted pointer.
DeepClone
for Rc<T>
where <T: DeepClone>
deep_clone
fn deep_clone(&self) -> Rc<T>
Return a deep copy of the reference counted pointer.
::std::cmp::Eq
for Borrow
Automatically derived.
eq
fn eq(&self, __arg_0: &Borrow) -> ::bool
ne
fn ne(&self, __arg_0: &Borrow) -> ::bool
RcMut<T>
where <T>
with_borrow
fn with_borrow<U>(&self, f: &fn(&T) -> U) -> U
Fails if there is already a mutable borrow of the box
with_mut_borrow
fn with_mut_borrow<U>(&self, f: &fn(&mut T) -> U) -> U
Fails if there is already a mutable or immutable borrow of the box
Drop
for RcMut<T>
where <T>
drop
fn drop(&self)
Clone
for RcMut<T>
where <T>
clone
fn clone(&self) -> RcMut<T>
Return a shallow copy of the reference counted pointer.
DeepClone
for RcMut<T>
where <T: DeepClone>
deep_clone
fn deep_clone(&self) -> RcMut<T>
Return a deep copy of the reference counted pointer.
rc_from_const
fn rc_from_const<T: Freeze>(value: T) -> Rc<T>
rc_from_owned
fn rc_from_owned<T: Send>(value: T) -> Rc<T>
rc_mut_from_const
fn rc_mut_from_const<T: Freeze>(value: T) -> RcMut<T>
rc_mut_from_owned
fn rc_mut_from_owned<T: Send>(value: T) -> RcMut<T>