Trait AsyncPwmRange

Source
pub trait AsyncPwmRange: AsyncPwm {
    type Range<'a>: IntoIterator<Item = (&'a Self::Key, &'a EntryValue<Self::Value>)>
       where Self: 'a;

    // Required method
    fn range<R>(&self, range: R) -> impl Future<Output = 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) -> impl Future<Output = 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.

Implementors§

Source§

impl<T> AsyncPwmRange for T
where T: PwmRange,

Source§

type Range<'a> = <T as PwmRange>::Range<'a> where T: 'a