Type Alias imhamt::sharedref::SharedRef

source ·
pub type SharedRef<T> = Arc<T>;

Aliased Type§

struct SharedRef<T> {
    ptr: NonNull<ArcInner<T>>,
    phantom: PhantomData<ArcInner<T>>,
    alloc: Global,
}

Fields§

§ptr: NonNull<ArcInner<T>>§phantom: PhantomData<ArcInner<T>>§alloc: Global

Trait Implementations§

1.0.0 · source§

impl<T, A> Deref for Arc<T, A>where A: Allocator, T: ?Sized,

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
1.0.0 · source§

impl<T, A> Hash for Arc<T, A>where T: Hash + ?Sized, A: Allocator,

source§

fn hash<H>(&self, state: &mut H)where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more