Add IntoIterator
trait bound on Future trait's parameter
The parameter is also renamed from `U` to `V` to avoid confusion with the type parameter `U` from the `write_iter` function that follows.
This commit is contained in:
parent
4d75035098
commit
2d475b80d9
@ -176,9 +176,9 @@ pub trait WriteIter<A: AddressMode = SevenBitAddress> {
|
|||||||
/// Error type
|
/// Error type
|
||||||
type Error;
|
type Error;
|
||||||
|
|
||||||
type WriteIterFuture<'a, U>: Future<Output = Result<(), Self::Error>> + 'a
|
type WriteIterFuture<'a, V>: Future<Output = Result<(), Self::Error>> + 'a
|
||||||
where
|
where
|
||||||
U: 'a,
|
V: 'a + IntoIterator<Item = u8>,
|
||||||
Self: 'a;
|
Self: 'a;
|
||||||
|
|
||||||
/// Sends bytes to slave with address `address`
|
/// Sends bytes to slave with address `address`
|
||||||
|
Loading…
Reference in New Issue
Block a user