Commit 7f265a23 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Rename DiscovererStreamInfo iterator simply to Iter and don't re-export it top-level

parent c81e177c
......@@ -10,12 +10,12 @@
use DiscovererStreamInfo;
use DiscovererStreamInfoExt;
pub struct DiscovererStreamInfoIter {
pub struct Iter {
stream_info: Option<DiscovererStreamInfo>,
direction_forward: bool
}
impl Iterator for DiscovererStreamInfoIter {
impl Iterator for Iter {
type Item = DiscovererStreamInfo;
fn next(&mut self) -> Option<DiscovererStreamInfo> {
......@@ -36,15 +36,15 @@ impl Iterator for DiscovererStreamInfoIter {
}
impl DiscovererStreamInfo {
pub fn next_iter(&self) -> DiscovererStreamInfoIter {
DiscovererStreamInfoIter {
pub fn next_iter(&self) -> Iter {
Iter {
stream_info: self.get_next(),
direction_forward: true
}
}
pub fn previous_iter(&self) -> DiscovererStreamInfoIter {
DiscovererStreamInfoIter {
pub fn previous_iter(&self) -> Iter {
Iter {
stream_info: self.get_previous(),
direction_forward: false
}
......
......@@ -56,8 +56,7 @@ pub use auto::*;
mod discoverer;
pub use discoverer::*;
mod discoverer_stream_info;
pub use discoverer_stream_info::*;
pub mod discoverer_stream_info;
mod discoverer_video_info;
pub use discoverer_video_info::*;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment