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
1 changed files with 2 additions and 2 deletions
|
@ -176,9 +176,9 @@ pub trait WriteIter<A: AddressMode = SevenBitAddress> {
|
|||
/// Error type
|
||||
type Error;
|
||||
|
||||
type WriteIterFuture<'a, U>: Future<Output = Result<(), Self::Error>> + 'a
|
||||
type WriteIterFuture<'a, V>: Future<Output = Result<(), Self::Error>> + 'a
|
||||
where
|
||||
U: 'a,
|
||||
V: 'a + IntoIterator<Item = u8>,
|
||||
Self: 'a;
|
||||
|
||||
/// Sends bytes to slave with address `address`
|
||||
|
|
Loading…
Reference in a new issue