Struct typedmap::dashmap::TypedKeyValueGuard[][src]

pub struct TypedKeyValueGuard<'a, Marker, S> { /* fields omitted */ }

Implementations

impl<'a, Marker, S: BuildHasher> TypedKeyValueGuard<'a, Marker, S>[src]

pub fn downcast_key_ref<K: 'static + TypedMapKey<Marker>>(&self) -> Option<&K>[src]

Downcast key to reference of K. Returns None if not possible.

pub fn downcast_value_ref<V: 'static + Any>(&self) -> Option<&V>[src]

Downcast value and returns reference or None if downcast failed.

pub fn downcast_pair_ref<K: 'static + TypedMapKey<Marker>>(
    &self
) -> Option<(&K, &K::Value)>
[src]

Downcast key to reference of K and value to reference of K::Value. Returns None if not possible.

Auto Trait Implementations

impl<'a, Marker, S> !RefUnwindSafe for TypedKeyValueGuard<'a, Marker, S>

impl<'a, Marker, S> Send for TypedKeyValueGuard<'a, Marker, S> where
    Marker: Send,
    S: BuildHasher

impl<'a, Marker, S> Sync for TypedKeyValueGuard<'a, Marker, S> where
    Marker: Sync,
    S: BuildHasher

impl<'a, Marker, S> Unpin for TypedKeyValueGuard<'a, Marker, S> where
    Marker: Unpin

impl<'a, Marker, S> !UnwindSafe for TypedKeyValueGuard<'a, Marker, S>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.