forked from mirrors/gstreamer-rs
Rename DiscovererStreamInfo iterator simply to Iter and don't re-export it top-level
This commit is contained in:
parent
c81e177cfb
commit
7f265a23bd
2 changed files with 7 additions and 8 deletions
|
@ -10,12 +10,12 @@
|
||||||
use DiscovererStreamInfo;
|
use DiscovererStreamInfo;
|
||||||
use DiscovererStreamInfoExt;
|
use DiscovererStreamInfoExt;
|
||||||
|
|
||||||
pub struct DiscovererStreamInfoIter {
|
pub struct Iter {
|
||||||
stream_info: Option<DiscovererStreamInfo>,
|
stream_info: Option<DiscovererStreamInfo>,
|
||||||
direction_forward: bool
|
direction_forward: bool
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Iterator for DiscovererStreamInfoIter {
|
impl Iterator for Iter {
|
||||||
type Item = DiscovererStreamInfo;
|
type Item = DiscovererStreamInfo;
|
||||||
|
|
||||||
fn next(&mut self) -> Option<DiscovererStreamInfo> {
|
fn next(&mut self) -> Option<DiscovererStreamInfo> {
|
||||||
|
@ -36,15 +36,15 @@ impl Iterator for DiscovererStreamInfoIter {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl DiscovererStreamInfo {
|
impl DiscovererStreamInfo {
|
||||||
pub fn next_iter(&self) -> DiscovererStreamInfoIter {
|
pub fn next_iter(&self) -> Iter {
|
||||||
DiscovererStreamInfoIter {
|
Iter {
|
||||||
stream_info: self.get_next(),
|
stream_info: self.get_next(),
|
||||||
direction_forward: true
|
direction_forward: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn previous_iter(&self) -> DiscovererStreamInfoIter {
|
pub fn previous_iter(&self) -> Iter {
|
||||||
DiscovererStreamInfoIter {
|
Iter {
|
||||||
stream_info: self.get_previous(),
|
stream_info: self.get_previous(),
|
||||||
direction_forward: false
|
direction_forward: false
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,8 +56,7 @@ pub use auto::*;
|
||||||
mod discoverer;
|
mod discoverer;
|
||||||
pub use discoverer::*;
|
pub use discoverer::*;
|
||||||
|
|
||||||
mod discoverer_stream_info;
|
pub mod discoverer_stream_info;
|
||||||
pub use discoverer_stream_info::*;
|
|
||||||
|
|
||||||
mod discoverer_video_info;
|
mod discoverer_video_info;
|
||||||
pub use discoverer_video_info::*;
|
pub use discoverer_video_info::*;
|
||||||
|
|
Loading…
Reference in a new issue