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

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> 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§