mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-01-25 00:18:26 +00:00
gstreamer: Implement Structure::from_iter()
more generically
This commit is contained in:
parent
003554876c
commit
3a340d0a89
1 changed files with 2 additions and 2 deletions
|
@ -79,9 +79,9 @@ impl Structure {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::should_implement_trait)]
|
#[allow(clippy::should_implement_trait)]
|
||||||
pub fn from_iter<'a>(
|
pub fn from_iter(
|
||||||
name: impl IntoGStr,
|
name: impl IntoGStr,
|
||||||
iter: impl IntoIterator<Item = (&'a glib::GStr, SendValue)>,
|
iter: impl IntoIterator<Item = (impl IntoGStr, SendValue)>,
|
||||||
) -> Structure {
|
) -> Structure {
|
||||||
skip_assert_initialized!();
|
skip_assert_initialized!();
|
||||||
let mut structure = Structure::new_empty(name);
|
let mut structure = Structure::new_empty(name);
|
||||||
|
|
Loading…
Reference in a new issue