Trait async_txn::PwmRange

source ·
pub trait PwmRange: Pwm {
    type Range<'a>: IntoIterator<Item = (&'a Self::Key, &'a EntryValue<Self::Value>)>
       where Self: 'a;

    // Required method
    fn range<R>(&self, range: R) -> Self::Range<'_>
       where R: RangeBounds<Self::Key>;
}
Expand description

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

Required Associated Types§

source

type Range<'a>: IntoIterator<Item = (&'a Self::Key, &'a EntryValue<Self::Value>)> where Self: 'a

The iterator type.

Required Methods§

source

fn range<R>(&self, range: R) -> Self::Range<'_>
where R: RangeBounds<Self::Key>,

Returns an iterator over the pending writes.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

§

type Range<'a> = Range<'a, K, EntryValue<V>> where BTreeMap<K, EntryValue<V>>: 'a

source§

fn range<R>( &self, range: R ) -> <BTreeMap<K, EntryValue<V>> as PwmRange>::Range<'_>
where R: RangeBounds<<BTreeMap<K, EntryValue<V>> as Pwm>::Key>,

Implementors§