File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -182,11 +182,14 @@ pub mod platform;
182182mod samples_formats;
183183pub mod traits;
184184
185+ /// Iterator of devices wrapped in a filter to only include certain device types
186+ pub type DevicesFiltered < I > = std:: iter:: Filter < I , fn ( & <I as Iterator >:: Item ) -> bool > ;
187+
185188/// A host's device iterator yielding only *input* devices.
186- pub type InputDevices < I > = std :: iter :: Filter < I , fn ( & < I as Iterator > :: Item ) -> bool > ;
189+ pub type InputDevices < I > = DevicesFiltered < I > ;
187190
188191/// A host's device iterator yielding only *output* devices.
189- pub type OutputDevices < I > = std :: iter :: Filter < I , fn ( & < I as Iterator > :: Item ) -> bool > ;
192+ pub type OutputDevices < I > = DevicesFiltered < I > ;
190193
191194/// Number of channels.
192195pub type ChannelCount = u16 ;
You can’t perform that action at this time.
0 commit comments