Struct crossbeam_skiplist::map::Entry[][src]

pub struct Entry<'a, K, V> { /* fields omitted */ }

A reference-counted entry in a map.

Implementations

impl<'a, K, V> Entry<'a, K, V>[src]

pub fn key(&self) -> &K[src]

Returns a reference to the key.

pub fn value(&self) -> &V[src]

Returns a reference to the value.

pub fn is_removed(&self) -> bool[src]

Returns true if the entry is removed from the map.

impl<'a, K, V> Entry<'a, K, V> where
    K: Ord
[src]

pub fn move_next(&mut self) -> bool[src]

Moves to the next entry in the map.

pub fn move_prev(&mut self) -> bool[src]

Moves to the previous entry in the map.

pub fn next(&self) -> Option<Entry<'a, K, V>>[src]

Returns the next entry in the map.

pub fn prev(&self) -> Option<Entry<'a, K, V>>[src]

Returns the previous entry in the map.

impl<K, V> Entry<'_, K, V> where
    K: Ord + Send + 'static,
    V: Send + 'static, 
[src]

pub fn remove(&self) -> bool[src]

Removes the entry from the map.

Returns true if this call removed the entry and false if it was already removed.

Trait Implementations

impl<'a, K, V> Clone for Entry<'a, K, V>[src]

impl<K, V> Debug for Entry<'_, K, V> where
    K: Debug,
    V: Debug
[src]

impl<K, V> Drop for Entry<'_, K, V>[src]

Auto Trait Implementations

impl<'a, K, V> !RefUnwindSafe for Entry<'a, K, V>

impl<'a, K, V> Send for Entry<'a, K, V> where
    K: Send + Sync,
    V: Send + Sync

impl<'a, K, V> Sync for Entry<'a, K, V> where
    K: Send + Sync,
    V: Send + Sync

impl<'a, K, V> Unpin for Entry<'a, K, V>

impl<'a, K, V> !UnwindSafe for Entry<'a, K, V>

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> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.