std::rc::Rc
pub struct Rc<T, A = Global>
- Kind
- struct
- Module
std::rc- Since
- 1.0.0
Source: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
The entries of std::rc in the Rust reference. This page has 71 cards.
pub struct Rc<T, A = Global>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn allocator(this: &Rc<T, A>) -> &A
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_ptr(this: &Rc<T, A>) -> *const T
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn assume_init(self) -> Rc<T, A>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn clone_from_ref(value: &T) -> Rc<T>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn clone_from_ref_in(value: &T, alloc: A) -> Rc<T, A>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn decrement_strong_count(ptr: *const T)
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn decrement_strong_count_in(ptr: *const T, alloc: A)
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn downcast<T>(self) -> Result<Rc<T, A>, Rc<dyn Any, A>> where T: Any
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn downcast_unchecked<T>(self) -> Rc<T, A> where T: Any
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn downgrade(this: &Rc<T, A>) -> Weak<T, A> where A: Clone
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_raw(ptr: *const T) -> Rc<T>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_raw_in(ptr: *const T, alloc: A) -> Rc<T, A>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_mut(this: &mut Rc<T, A>) -> Option<&mut T>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn get_mut_unchecked(this: &mut Rc<T, A>) -> &mut T
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn increment_strong_count(ptr: *const T)
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn increment_strong_count_in(ptr: *const T, alloc: A) where A: Clone
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_array<const N: usize>(self) -> Result<Rc<[T; N], A>, Rc<[T], A>>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_inner(this: Rc<T, A>) -> Option<T>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_raw(this: Rc<T>) -> *const T
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_raw_with_allocator(this: Rc<T, A>) -> (*const T, A)
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn make_mut(this: &mut Rc<T, A>) -> &mut T
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn map<U>(this: Rc<T>, f: impl FnOnce(&T) -> U) -> Rc<U>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new(value: T) -> Rc<T>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_cyclic<F>(data_fn: F) -> Rc<T> where F: FnOnce(&Weak<T>) -> T
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_cyclic_in<F>(data_fn: F, alloc: A) -> Rc<T, A> where F: FnOnce(&Weak<T, A>) -> T
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_in(value: T, alloc: A) -> Rc<T, A>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_uninit() -> Rc<MaybeUninit<T>>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_uninit_in(alloc: A) -> Rc<MaybeUninit<T>, A>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_uninit_slice(len: usize) -> Rc<[MaybeUninit<T>]>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_uninit_slice_in(len: usize, alloc: A) -> Rc<[MaybeUninit<T>], A>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_zeroed() -> Rc<MaybeUninit<T>>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_zeroed_in(alloc: A) -> Rc<MaybeUninit<T>, A>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_zeroed_slice(len: usize) -> Rc<[MaybeUninit<T>]>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_zeroed_slice_in(len: usize, alloc: A) -> Rc<[MaybeUninit<T>], A>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn pin(value: T) -> Pin<Rc<T>>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn pin_in(value: T, alloc: A) -> Pin<Rc<T, A>> where A: 'static
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn ptr_eq(this: &Rc<T, A>, other: &Rc<T, A>) -> bool
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn strong_count(this: &Rc<T, A>) -> usize
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_clone_from_ref(value: &T) -> Result<Rc<T>, AllocError>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_clone_from_ref_in( value: &T, alloc: A, ) -> Result<Rc<T, A>, AllocError>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_map<R>( this: Rc<T>, f: impl FnOnce(&T) -> R, ) -> <<R as Try>::Residual as Residual<Rc<<R as Try>::Output>>>::TryType where R: Try, <R as Try>::Residual: Residual<Rc<<R as Try>::Output>>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new(value: T) -> Result<Rc<T>, AllocError>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_in(value: T, alloc: A) -> Result<Rc<T, A>, AllocError>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_uninit() -> Result<Rc<MaybeUninit<T>>, AllocError>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_uninit_in(alloc: A) -> Result<Rc<MaybeUninit<T>, A>, AllocError>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_zeroed() -> Result<Rc<MaybeUninit<T>>, AllocError>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_zeroed_in(alloc: A) -> Result<Rc<MaybeUninit<T>, A>, AllocError>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_unwrap(this: Rc<T, A>) -> Result<T, Rc<T, A>>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn unwrap_or_clone(this: Rc<T, A>) -> T
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn weak_count(this: &Rc<T, A>) -> usize
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct UniqueRc<T, A = Global>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn downgrade(this: &UniqueRc<T, A>) -> Weak<T, A>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_rc(this: UniqueRc<T, A>) -> Rc<T, A>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn map<U>(this: UniqueRc<T>, f: impl FnOnce(T) -> U) -> UniqueRc<U>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new(value: T) -> UniqueRc<T>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_in(value: T, alloc: A) -> UniqueRc<T, A>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_map<R>( this: UniqueRc<T>, f: impl FnOnce(T) -> R, ) -> <<R as Try>::Residual as Residual<UniqueRc<<R as Try>::Output>>>::TryType where R: Try, <R as Try>::Residual: Residual<UniqueRc<<R as Try>::Output>>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Weak<T, A = Global>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn allocator(&self) -> &A
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_ptr(&self) -> *const T
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_raw(ptr: *const T) -> Weak<T>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_raw_in(ptr: *const T, alloc: A) -> Weak<T, A>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_raw(self) -> *const T
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_raw_with_allocator(self) -> (*const T, A)
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new() -> Weak<T>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_in(alloc: A) -> Weak<T, A>
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn ptr_eq(&self, other: &Weak<T, A>) -> bool
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn strong_count(&self) -> usize
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn upgrade(&self) -> Option<Rc<T, A>> where A: Clone
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn weak_count(&self) -> usize
std::rcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.