Struct RcInner
#[repr(C, align(2))]
pub(in ::rc) struct RcInner<T: ?Sized> { pub(in ::rc) strong: Cell<usize>, pub(in ::rc) weak: Cell<usize>, pub(in ::rc) value: T }
Fields
strong: Cell<usize>weak: Cell<usize>value: T
Trait Implementations
impl<T: ?Sized> RcInnerPtr for RcInner<T>
fn weak_ref(&self) -> &Cell<usize>fn strong_ref(&self) -> &Cell<usize>
Auto Trait Implementations
impl<T> !Freeze for RcInner<T>
impl<T> !RefUnwindSafe for RcInner<T>
impl<T> !Sync for RcInner<T>
impl<T> Send for RcInner<T>
where
T: Send + ?Sized,
impl<T> Unpin for RcInner<T>
where
T: Unpin + ?Sized,
impl<T> UnsafeUnpin for RcInner<T>
where
T: UnsafeUnpin + ?Sized,
impl<T> UnwindSafe for RcInner<T>
where
T: UnwindSafe + ?Sized,
Blanket Implementations
impl<T> Any for RcInner<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for RcInner<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for RcInner<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for RcInner<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for RcInner<T>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for RcInner<T>
impl<T, U> Into<U> for RcInner<T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for RcInner<T>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for RcInner<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>