gstreamer: meta: Implement Clone trait on MetaRef

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1365>
This commit is contained in:
Olivier Crête 2023-12-04 10:18:09 -06:00
parent 2139f368e9
commit 248b6d2f31

View file

@ -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;