mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 17:41:05 +00:00
Implement Display for Caps and TagList
This commit is contained in:
parent
2b029bcdd4
commit
ad62d08d65
2 changed files with 12 additions and 0 deletions
|
@ -116,6 +116,12 @@ impl str::FromStr for Caps {
|
|||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for Caps {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
self.0.fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
impl CapsRef {
|
||||
pub fn set_simple(&mut self, values: &[(&str, &ToSendValue)]) {
|
||||
for &(name, value) in values {
|
||||
|
|
|
@ -358,6 +358,12 @@ impl Default for TagList {
|
|||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for TagList {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
self.0.fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
impl TagListRef {
|
||||
pub fn add<'a, T: Tag<'a>>(&mut self, value: &T::TagType, mode: TagMergeMode)
|
||||
where
|
||||
|
|
Loading…
Reference in a new issue