pub struct UniqueRc<T: ?Sized>(/* private fields */);
Trait Implementations§
Source§impl<T: ?Sized> BorrowMut<T> for UniqueRc<T>
impl<T: ?Sized> BorrowMut<T> for UniqueRc<T>
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: ?Sized + Ord> Ord for UniqueRc<T>
impl<T: ?Sized + Ord> Ord for UniqueRc<T>
Source§fn cmp(&self, other: &UniqueRc<T>) -> Ordering
fn cmp(&self, other: &UniqueRc<T>) -> Ordering
Comparison for two UniqueRc
s.
The two are compared by calling cmp()
on their inner values.
1.21.0 · 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
Source§impl<T: ?Sized + PartialEq> PartialEq for UniqueRc<T>
impl<T: ?Sized + PartialEq> PartialEq for UniqueRc<T>
Source§impl<T: ?Sized + PartialOrd> PartialOrd for UniqueRc<T>
impl<T: ?Sized + PartialOrd> PartialOrd for UniqueRc<T>
Source§fn partial_cmp(&self, other: &UniqueRc<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &UniqueRc<T>) -> Option<Ordering>
Partial comparison for two UniqueRc
s.
The two are compared by calling partial_cmp()
on their inner values.
Source§fn lt(&self, other: &UniqueRc<T>) -> bool
fn lt(&self, other: &UniqueRc<T>) -> bool
Less-than comparison for two UniqueRc
s.
The two are compared by calling <
on their inner values.
Source§fn le(&self, other: &UniqueRc<T>) -> bool
fn le(&self, other: &UniqueRc<T>) -> bool
‘Less than or equal to’ comparison for two UniqueRc
s.
The two are compared by calling <=
on their inner values.
Source§impl<T: ?Sized> SmartPointer<T> for UniqueRc<T>
impl<T: ?Sized> SmartPointer<T> for UniqueRc<T>
impl<T: ?Sized + Eq> Eq for UniqueRc<T>
impl<T: ?Sized + Sync + Send> Send for UniqueRc<T>
impl<T: ?Sized> SmartPointerMut<T> for UniqueRc<T>
impl<T: ?Sized + Sync + Send> Sync for UniqueRc<T>
impl<T: ?Sized> Unpin for UniqueRc<T>
Auto Trait Implementations§
impl<T> Freeze for UniqueRc<T>where
T: ?Sized,
impl<T> !RefUnwindSafe for UniqueRc<T>
impl<T> !UnwindSafe for UniqueRc<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