Trait txn_core::sync::PwmComparableRange

source ·
pub trait PwmComparableRange: PwmRange + PwmComparable {
    // Required method
    fn range_comparable<T, R>(&self, range: R) -> Self::Range<'_>
       where T: ?Sized + Ord,
             Self::Key: Borrow<T> + Ord,
             R: RangeBounds<T>;
}
Expand description

An trait that can be used to get a range over the pending writes.

Required Methods§

source

fn range_comparable<T, R>(&self, range: R) -> Self::Range<'_>
where T: ?Sized + Ord, Self::Key: Borrow<T> + Ord, R: RangeBounds<T>,

Returns an iterator over the pending writes.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<K, V> PwmComparableRange for BTreeMap<K, EntryValue<V>>
where K: Ord,

source§

fn range_comparable<T, R>(&self, range: R) -> Self::Range<'_>
where T: ?Sized + Ord, Self::Key: Borrow<T> + Ord, R: RangeBounds<T>,

Implementors§