Struct gstreamer::meta::MetaRefMut
source · pub struct MetaRefMut<'a, T: 'a, U> {
meta: &'a mut T,
buffer: &'a mut BufferRef,
mode: PhantomData<U>,
}
Fields§
§meta: &'a mut T
§buffer: &'a mut BufferRef
§mode: PhantomData<U>
Implementations§
source§impl<'a, T, U> MetaRefMut<'a, T, U>
impl<'a, T, U> MetaRefMut<'a, T, U>
pub fn api(&self) -> Type
pub fn flags(&self) -> MetaFlags
pub fn type_(&self) -> Type
pub fn seqnum(&self) -> MetaSeqnum
pub fn has_tag(&self, tag: Quark) -> bool
pub fn upcast_ref(&self) -> &MetaRef<'a, Meta>
pub fn upcast_mut(&mut self) -> &mut MetaRefMut<'a, Meta, U>
pub fn as_meta_ref(&self) -> MetaRef<'_, T>
pub fn copy(
&self,
buffer: &mut BufferRef,
region: bool,
range: impl RangeBounds<usize>,
) -> Result<(), BoolError>where
T: MetaAPI,
pub fn as_ptr(&self) -> *const T::GstTypewhere
T: MetaAPI,
pub fn as_mut_ptr(&mut self) -> *mut T::GstTypewhere
T: MetaAPI,
source§impl<'a, T> MetaRefMut<'a, T, Standalone>
impl<'a, T> MetaRefMut<'a, T, Standalone>
source§impl<'a, U> MetaRefMut<'a, Meta, U>
impl<'a, U> MetaRefMut<'a, Meta, U>
pub fn downcast_ref<T: MetaAPI>(&mut self) -> Option<&MetaRefMut<'a, T, U>>
pub fn downcast_mut<T: MetaAPI>(&mut self) -> Option<&mut MetaRefMut<'a, T, U>>
Trait Implementations§
source§impl<'a, T, U> AsMut<T> for MetaRefMut<'a, T, U>
impl<'a, T, U> AsMut<T> for MetaRefMut<'a, T, U>
source§impl<'a, T, U> AsRef<MetaRef<'a, T>> for MetaRefMut<'a, T, U>
impl<'a, T, U> AsRef<MetaRef<'a, T>> for MetaRefMut<'a, T, U>
source§impl<'a, T: Debug + 'a, U> Debug for MetaRefMut<'a, T, U>
impl<'a, T: Debug + 'a, U> Debug for MetaRefMut<'a, T, U>
source§impl<'a, T, U> Deref for MetaRefMut<'a, T, U>
impl<'a, T, U> Deref for MetaRefMut<'a, T, U>
Auto Trait Implementations§
impl<'a, T, U> Freeze for MetaRefMut<'a, T, U>
impl<'a, T, U> RefUnwindSafe for MetaRefMut<'a, T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<'a, T, U> Send for MetaRefMut<'a, T, U>
impl<'a, T, U> Sync for MetaRefMut<'a, T, U>
impl<'a, T, U> Unpin for MetaRefMut<'a, T, U>where
U: Unpin,
impl<'a, T, U> !UnwindSafe for MetaRefMut<'a, T, U>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more