mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 00:26:31 +00:00
gstreamer: meta: Implement Clone trait on MetaRef
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1365>
This commit is contained in:
parent
2139f368e9
commit
248b6d2f31
1 changed files with 9 additions and 0 deletions
|
@ -121,6 +121,15 @@ impl<'a, T> AsRef<T> for MetaRef<'a, T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<'a, T: 'a> Clone for MetaRef<'a, T> {
|
||||||
|
fn clone(&self) -> Self {
|
||||||
|
MetaRef {
|
||||||
|
meta: self.meta,
|
||||||
|
buffer: self.buffer,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<'a, T, U> ops::Deref for MetaRefMut<'a, T, U> {
|
impl<'a, T, U> ops::Deref for MetaRefMut<'a, T, U> {
|
||||||
type Target = T;
|
type Target = T;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue