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