Trait async_txn::PwmComparableRange

source ·
pub trait PwmComparableRange: PwmRange + PwmComparable {
    // Required method
    fn range_comparable<T, R>(&self, range: R) -> Self::Range<'_>
       where T: Ord + ?Sized,
             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: Ord + ?Sized, 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 ) -> <BTreeMap<K, EntryValue<V>> as PwmRange>::Range<'_>
where T: Ord + ?Sized, <BTreeMap<K, EntryValue<V>> as Pwm>::Key: Borrow<T> + Ord, R: RangeBounds<T>,

Implementors§