Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

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

Source§

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§