pub struct CombArc<T: Clone> { /* private fields */ }Expand description
Implementations§
Source§impl<T: Clone> CombArc<T>
impl<T: Clone> CombArc<T>
Sourcepub fn clone_unique(what: &CombArc<T>) -> CombArc<T>
pub fn clone_unique(what: &CombArc<T>) -> CombArc<T>
Clones the inner value stored in the CombArc, returning a unique clone of it.
Sourcepub fn try_unwrap(what: CombArc<T>) -> Result<T, Self>
pub fn try_unwrap(what: CombArc<T>) -> Result<T, Self>
Attempt to get the inner value inside of the CombArc.
If this is a unique reference, the inner value will be moved. Otherwise, the reference will be re-returned.
Sourcepub fn make_inner(what: CombArc<T>) -> T
pub fn make_inner(what: CombArc<T>) -> T
Try to get the inner value inside of the CombArc or clone otherwise.
If this is a unique reference, the inner value will be moved. Otherwise, it will be cloned.
Trait Implementations§
Source§impl<T: Ord + Clone> Ord for CombArc<T>
impl<T: Ord + Clone> Ord for CombArc<T>
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: Clone + PartialOrd> PartialOrd<T> for CombArc<T>
impl<T: Clone + PartialOrd> PartialOrd<T> for CombArc<T>
Source§impl<T: PartialOrd + Clone> PartialOrd for CombArc<T>
impl<T: PartialOrd + Clone> PartialOrd for CombArc<T>
impl<T: Eq + Clone> Eq for CombArc<T>
impl<T: Clone> StructuralPartialEq for CombArc<T>
Auto Trait Implementations§
impl<T> Freeze for CombArc<T>
impl<T> RefUnwindSafe for CombArc<T>where
T: RefUnwindSafe,
impl<T> Send for CombArc<T>
impl<T> Sync for CombArc<T>
impl<T> Unpin for CombArc<T>
impl<T> UnwindSafe for CombArc<T>where
T: RefUnwindSafe,
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