pub struct SCell<T: ?Sized>(/* private fields */);Expand description
A smart container for objects in recursive data structures
This container contains Rc and therefore clone() will create a new reference to the same instance.
Implementations§
Trait Implementations§
impl<T> Eq for SCell<T>
Source§impl<T> Ord for SCell<T>
impl<T> Ord for SCell<T>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Auto Trait Implementations§
impl<T> !RefUnwindSafe for SCell<T>
impl<T> !Send for SCell<T>
impl<T> !Sync for SCell<T>
impl<T> !UnwindSafe for SCell<T>
impl<T> Freeze for SCell<T>where
T: ?Sized,
impl<T> Unpin for SCell<T>where
T: ?Sized,
impl<T> UnsafeUnpin for SCell<T>where
T: ?Sized,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more