[][src]Trait shared_string::RefCounter

pub trait RefCounter: Clone + Sized + Deref<Target = Box<[u8]>> + From<Box<[u8]>> {
    pub fn try_unwrap(self) -> Result<Box<[u8]>, Self>;
}

A trait to allow SharedString to be generic over any reference counter.

Implemented for Rc and Arc.

Requires the traits Clone + Sized + Deref<Box<[u8]>> + From<Box<[u8]>>

Required methods

pub fn try_unwrap(self) -> Result<Box<[u8]>, Self>[src]

Loading content...

Implementations on Foreign Types

impl RefCounter for Rc<Box<[u8]>>[src]

impl RefCounter for Arc<Box<[u8]>>[src]

Loading content...

Implementors

Loading content...