Struct gstreamer::tags::TagListRef
source · [−]#[repr(transparent)]pub struct TagListRef(_);
Implementations
sourceimpl TagListRef
impl TagListRef
pub unsafe fn as_ptr(&self) -> *const GstTagList
pub unsafe fn as_mut_ptr(&self) -> *mut GstTagList
pub unsafe fn from_ptr<'a>(ptr: *const GstTagList) -> &'a Self
pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstTagList) -> &'a mut Self
pub fn copy(&self) -> TagList
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
sourceimpl TagListRef
impl TagListRef
pub fn add<'a, T: Tag<'a>>(&mut self, value: &T::TagType, mode: TagMergeMode)
pub fn add_generic<T: ToSendValue + Sync>(
&mut self,
tag_name: &str,
value: T,
mode: TagMergeMode
) -> Result<(), TagError>
pub fn add_value(
&mut self,
tag_name: &str,
value: &SendValue,
mode: TagMergeMode
) -> Result<(), TagError>
pub fn remove<'a, T: Tag<'a>>(&mut self)
pub fn remove_generic(&mut self, tag_name: &str)
pub fn get<'a, T: Tag<'a>>(&self) -> Option<TagValue<T::TagType>>
pub fn generic(&self, tag_name: &str) -> Option<SendValue>
pub fn nth_tag_name(&self, idx: u32) -> &str
pub fn index<'a, T: Tag<'a>>(
&self,
idx: u32
) -> Option<&'a TagValue<T::TagType>>
pub fn index_generic<'a>(
&'a self,
tag_name: &str,
idx: u32
) -> Option<&'a SendValue>
pub fn size<'a, T: Tag<'a>>(&self) -> u32
pub fn size_by_name(&self, tag_name: &str) -> u32
pub fn iter_tag<'a, T: Tag<'a>>(&'a self) -> TagIter<'a, T>ⓘNotable traits for TagIter<'a, T>impl<'a, T: Tag<'a>> Iterator for TagIter<'a, T> where
<T as Tag<'a>>::TagType: 'a,
T: 'a, type Item = &'a TagValue<T::TagType>;
<T as Tag<'a>>::TagType: 'a,
T: 'a, type Item = &'a TagValue<T::TagType>;
pub fn iter_tag_generic<'a>(&'a self, tag_name: &'a str) -> GenericTagIter<'a>ⓘNotable traits for GenericTagIter<'a>impl<'a> Iterator for GenericTagIter<'a> type Item = &'a SendValue;
pub fn iter_generic(&self) -> GenericIter<'_>ⓘNotable traits for GenericIter<'a>impl<'a> Iterator for GenericIter<'a> type Item = (&'a str, GenericTagIter<'a>);
pub fn iter(&self) -> Iter<'_>ⓘNotable traits for Iter<'a>impl<'a> Iterator for Iter<'a> type Item = (&'a str, SendValue);
pub fn insert(&mut self, other: &TagListRef, mode: TagMergeMode)
pub fn merge(&self, other: &TagListRef, mode: TagMergeMode) -> TagList
pub fn scope(&self) -> TagScope
pub fn set_scope(&mut self, scope: TagScope)
Trait Implementations
sourceimpl AsRef<TagListRef> for TagList
impl AsRef<TagListRef> for TagList
sourcefn as_ref(&self) -> &TagListRef
fn as_ref(&self) -> &TagListRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<TagListRef> for TagList
impl Borrow<TagListRef> for TagList
sourcefn borrow(&self) -> &TagListRef
fn borrow(&self) -> &TagListRef
Immutably borrows from an owned value. Read more
sourceimpl Debug for TagListRef
impl Debug for TagListRef
sourceimpl Display for TagListRef
impl Display for TagListRef
sourceimpl<'a> FromValue<'a> for &'a TagListRef
impl<'a> FromValue<'a> for &'a TagListRef
type Checker = GenericValueTypeOrNoneChecker<&'a TagListRef>
type Checker = GenericValueTypeOrNoneChecker<&'a TagListRef>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl GlibPtrDefault for TagListRef
impl GlibPtrDefault for TagListRef
type GlibType = *mut GstTagList
sourceimpl PartialEq<TagListRef> for TagListRef
impl PartialEq<TagListRef> for TagListRef
sourceimpl Serialize for TagListRef
impl Serialize for TagListRef
sourceimpl StaticType for TagListRef
impl StaticType for TagListRef
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl ToOwned for TagListRef
impl ToOwned for TagListRef
impl Eq for TagListRef
impl Send for TagListRef
impl Sync for TagListRef
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.