Trait txn_core::sync::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: RangeBounds<Self::Key>>(&self, range: R) -> Self::Range<'_>;
}
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: RangeBounds<Self::Key>>(&self, range: R) -> Self::Range<'_>

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 Self: 'a

source§

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

Implementors§