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§
Source§impl<T> Ord for SCell<T>
impl<T> Ord for SCell<T>
Source§impl<T> PartialOrd for SCell<T>where
T: PartialOrd + ?Sized,
impl<T> PartialOrd for SCell<T>where
T: PartialOrd + ?Sized,
impl<T> Eq for SCell<T>
Auto Trait Implementations§
impl<T> Freeze for SCell<T>where
T: ?Sized,
impl<T> !RefUnwindSafe for SCell<T>
impl<T> !Send for SCell<T>
impl<T> !Sync for SCell<T>
impl<T> Unpin for SCell<T>where
T: ?Sized,
impl<T> !UnwindSafe for SCell<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)