mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
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
|
||||
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 New Issue
Block a user