Struct crossbeam_skiplist::map::Entry [−][src]
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][−]
K: Ord,
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][−]
K: Ord + Send + 'static,
V: Send + 'static,
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][+]
K: Debug,
V: Debug,
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,
K: Send + Sync,
V: Send + Sync,
impl<'a, K, V> Sync for Entry<'a, K, V> where
K: Send + Sync,
V: Send + Sync,
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][+]
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,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Pointable for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,