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
Available on crate feature
v1_16
only.pub fn has_tag(&self, tag: Quark) -> bool
pub fn upcast_ref(&self) -> &MetaRef<'a, Meta>
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 serialize<B: ByteArrayInterface + ?Sized>( &self, writer: &mut B ) -> Result<usize, BoolError>
Available on crate feature
v1_24
only.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>>
Available on crate feature
v1_20
only.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