Struct gstreamer::meta::MetaRefMut

source ·
pub struct MetaRefMut<'a, T: 'a, U> { /* private fields */ }

Implementations§

source§

impl<'a, T, U> MetaRefMut<'a, T, U>

source

pub fn api(&self) -> Type

source

pub fn flags(&self) -> MetaFlags

source

pub fn type_(&self) -> Type

source

pub fn seqnum(&self) -> MetaSeqnum

source

pub fn has_tag<MT: MetaTag>(&self) -> bool

source

pub fn has_tag_by_quark(&self, tag: Quark) -> bool

source

pub fn tags<'b>(&self) -> &'b [GStringPtr]

source

pub fn upcast_ref(&self) -> &MetaRef<'a, Meta>

source

pub fn upcast_mut(&mut self) -> &mut MetaRefMut<'a, Meta, U>

source

pub fn as_meta_ref(&self) -> MetaRef<'_, T>

source

pub fn transform<MT>( &'a self, buffer: &mut BufferRef, data: &'a MT, ) -> Result<(), BoolError>
where T: MetaAPI, MT: MetaTransform<'a>,

source

pub fn as_ptr(&self) -> *const T::GstType
where T: MetaAPI,

source

pub fn as_mut_ptr(&mut self) -> *mut T::GstType
where T: MetaAPI,

source

pub fn serialize<B: ByteArrayInterface + ?Sized>( &self, writer: &mut B, ) -> Result<usize, BoolError>

source

pub fn clear(&mut self) -> Result<(), BoolError>
where T: MetaAPI,

source§

impl<'a, T> MetaRefMut<'a, T, Standalone>

source

pub fn remove(self) -> Result<(), BoolError>

source§

impl<'a, U> MetaRefMut<'a, Meta, U>

source

pub fn downcast_ref<T: MetaAPI>(&mut self) -> Option<&MetaRefMut<'a, T, U>>

source

pub fn downcast_mut<T: MetaAPI>(&mut self) -> Option<&mut MetaRefMut<'a, T, U>>

source

pub fn try_as_custom_meta(&self) -> Option<&MetaRefMut<'a, CustomMeta, U>>

source

pub fn try_as_mut_custom_meta( &mut self, ) -> Option<&mut MetaRefMut<'a, CustomMeta, U>>

Trait Implementations§

source§

impl<'a, T, U> AsMut<T> for MetaRefMut<'a, T, U>

source§

fn as_mut(&mut self) -> &mut T

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<'a, T, U> AsRef<MetaRef<'a, T>> for MetaRefMut<'a, T, U>

source§

fn as_ref(&self) -> &MetaRef<'a, T>

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<'a, T: Debug + 'a, U> Debug for MetaRefMut<'a, T, U>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a, T, U> Deref for MetaRefMut<'a, T, U>

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
source§

impl<'a, T, U> DerefMut for MetaRefMut<'a, T, U>

source§

fn deref_mut(&mut self) -> &mut T

Mutably dereferences the value.

Auto Trait Implementations§

§

impl<'a, T, U> Freeze for MetaRefMut<'a, T, U>

§

impl<'a, T, U> RefUnwindSafe for MetaRefMut<'a, T, U>

§

impl<'a, T, U> Send for MetaRefMut<'a, T, U>
where T: Send, U: Send,

§

impl<'a, T, U> Sync for MetaRefMut<'a, T, U>
where T: Sync, U: Sync,

§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.