forked from mirrors/gstreamer-rs
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> {
|
||||
type Target = T;
|
||||
|
||||
|
|
Loading…
Reference in a new issue