mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 00:26:31 +00:00
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 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::*;
|
||||
|
|
Loading…
Reference in a new issue