Struct typedmap::dashmap::TypedKeyValueRef [−][src]
Represents borrowed pair of key and value.
Implementations
impl<'a, Marker> TypedKeyValueRef<'a, Marker>
[src]
pub fn downcast_key_ref<K: 'static + TypedMapKey<Marker>>(
&self
) -> Option<&'a K>
[src]
&self
) -> Option<&'a K>
Downcast key to reference of K
. Returns None
if not possible.
pub fn downcast_value_ref<V: 'static + Any>(&self) -> Option<&'a V>
[src]
Downcast value and returns reference or None
if downcast failed.
pub fn downcast_pair_ref<K: 'static + TypedMapKey<Marker>>(
&self
) -> Option<(&'a K, &'a K::Value)>
[src]
&self
) -> Option<(&'a K, &'a K::Value)>
Downcast key to reference of K
and value to reference of K::Value
.
Returns None
if not possible.
Auto Trait Implementations
impl<'a, Marker> !RefUnwindSafe for TypedKeyValueRef<'a, Marker>
impl<'a, Marker> Send for TypedKeyValueRef<'a, Marker> where
Marker: Send,
Marker: Send,
impl<'a, Marker> Sync for TypedKeyValueRef<'a, Marker> where
Marker: Sync,
Marker: Sync,
impl<'a, Marker> Unpin for TypedKeyValueRef<'a, Marker> where
Marker: Unpin,
Marker: Unpin,
impl<'a, Marker> !UnwindSafe for TypedKeyValueRef<'a, Marker>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,