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

This commit is contained in:
Sebastian Dröge 2018-03-02 21:00:48 +02:00
parent c81e177cfb
commit 7f265a23bd
2 changed files with 7 additions and 8 deletions

View file

@ -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
}

View file

@ -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::*;