pub struct MetaRef<'a, T: 'a> { /* private fields */ }
Implementations§
source§impl<'a, T> MetaRef<'a, T>
impl<'a, T> MetaRef<'a, T>
pub fn api(&self) -> Type
pub fn flags(&self) -> MetaFlags
pub fn type_(&self) -> Type
pub fn seqnum(&self) -> MetaSeqnum
pub fn has_tag<MT: MetaTag>(&self) -> bool
pub fn has_tag_by_quark(&self, tag: Quark) -> bool
pub fn upcast_ref(&self) -> &MetaRef<'a, Meta>
pub fn transform<MT>(
&self,
buffer: &mut BufferRef,
data: &'a MT,
) -> Result<(), BoolError>where
T: MetaAPI,
MT: MetaTransform<'a>,
pub fn as_ptr(&self) -> *const T::GstTypewhere
T: MetaAPI,
pub fn serialize<B: ByteArrayInterface + ?Sized>( &self, writer: &mut B, ) -> Result<usize, BoolError>
source§impl<'a> MetaRef<'a, Meta>
impl<'a> MetaRef<'a, Meta>
pub fn downcast_ref<T: MetaAPI>(&self) -> Option<&MetaRef<'a, T>>
pub fn try_as_custom_meta(&self) -> Option<&MetaRef<'a, CustomMeta>>
Trait Implementations§
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>
Auto Trait Implementations§
impl<'a, T> Freeze for MetaRef<'a, T>
impl<'a, T> RefUnwindSafe for MetaRef<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for MetaRef<'a, T>where
T: Sync,
impl<'a, T> Sync for MetaRef<'a, T>where
T: Sync,
impl<'a, T> Unpin for MetaRef<'a, T>
impl<'a, T> UnwindSafe for MetaRef<'a, T>where
T: RefUnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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